Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rest]

The REST API provides a powerful, convenient, and simple Web services API for interacting with Force.com.

0
votes
2answers
296 views

Trying to upload attachment blob to Egnyte REST API

I am having an issue specifically trying to upload an attachment blob to Egnyte using the REST API. Code is below. Any input is appreciated, I am guessing my POST is missing something but I can't see ...
0
votes
1answer
203 views

Preview a Trigger Send without publishing

Is there a way to trigger an email using a landing page? The only way to see the changes to an email that is part of a Trigger Send is by publishing the changes. But I would like to use a landing ...
0
votes
1answer
127 views

Not able to get access token from salesforce

I am getting authorization code and when i am trying to get the access token than it give error like { "error": "unsupported_grant_type" "error_description": "grant type not supported" } This is my ...
0
votes
1answer
630 views

Achieving Cookie Dependent REST API session

I am working on a application where hitting a button in Salesforce user interface must redirect you to some third party web application session. Below is some sample code that I use to connect: ...
0
votes
0answers
430 views

how to give request uri to access http put method without using apex class in workbench and postman

enter image description here Put Method is Not working for any Requests whereas all Methods are Working Good can anyone Please guide me for the Answer
0
votes
1answer
160 views

End Point URL Error in HTTP Class?

I have a 3rd Party Endpoint Url Which I Paste in browser Address bar I can see the XML Data. But the same Endpoint URL , I invoke via Apex Class (Http Call) I will get a Error Message From the System ...
0
votes
1answer
95 views

Regarding Rest Services using Rest Api

@RestResource(urlMapping='/Account13/*') global with sharing class MyRestResource13 { @HttpPost global static string sendAccount(){ RestRequest req = RestContext.request; ...
0
votes
1answer
122 views

PHP Can't Update Picklist with Existing Value

I'm having a very strange problem with PHP (Laravel with Forrest) and updating values. I've got a pick list called Approved_Rejected__c with the following values: New Submitted Approved Rejected ...
0
votes
0answers
455 views

SoapUI - Community User Login Setup

I want to setup some tests using the SoapUI Tool. The first part of my test involves getting a token for a community user. Since the OAuth flow mechanisms are different for a community user, how can ...
0
votes
1answer
65 views

Set lastmodifieddate and/or createddate of a document when uploading with the REST API

I am making a rest call for inserting a document Can someone please suggest how to set the lastmodifieddate and/or createddate of a document when uploading with the REST API
0
votes
0answers
226 views

Trigger does not fire up when trying to update record using third party application

Good day, everyone I have created a trigger in salesforce and I also create a connected app to send data from my wordpress app to my custom object in salesforce. All is working well when I try to ...
0
votes
0answers
40 views

Connect two salesforce Personal Org [duplicate]

Can someone guide me how i can connect two salesforce personal Org using REST Services. Basically I have very little idea about Web Services. But i want to integrate two Org using REST web service. ...
0
votes
1answer
679 views

Uploading multiple files using REST API of Chatter.

I am trying to upload multiple files using Chatter REST API. I was previously able to upload a file. Now I have to upload multiple files. I got these file names and parameter names in array, as stated ...
0
votes
1answer
67 views

Salesforce Integration Rest

I have a requirement where i have to fetch response from Call Back Url in salesforce. I am not sure how to create a Call Back Url and how to execute a class to parse the XML response. Basically I am ...
0
votes
1answer
53 views

Export/Get Auto Response Rules

Is it possible to export auto response rules in some way? Ultimately I want to either export them into Excel or display on a Visualforce page. I've tried looking at the REST explorer on workbench but ...
0
votes
1answer
435 views

Having Trouble with Force.com REST API oAuth2 Authentication

I am experimenting with Pat_Patterson's "Interact with the Force.com REST API from PHP". I am using PHP Version 5.6.3 , and I already registered my app via Setup->Create->Apps->Connected Apps. I setup ...
0
votes
0answers
6k views

REST HTTP Response Error : {“error”:“invalid_client”,“error_description”:“invalid client credentials”}

I am trying to achieve a REST based integration between two Salesforce instances (both of them developer editions) Expense created from source instance will be sent to the destination instance via ...
0
votes
1answer
58 views

How can I associate OAuth credentials to a single REST request?

I am currently working on this app where I make a REST request directly to a table on Salesforce. Currently, it works on Workbench just fine, but I don't understand how to use OAuth with it. I made a ...
0
votes
0answers
382 views

Unexpected parameter encountered during deserialization

I am trying to write a REST service which will send SF objects between Orgs. Right now, as a test, I am sending data to the same Org that it is coming from. I wrote a GET request which worked so I ...
0
votes
1answer
659 views

Making REST API calls from Salesforce to Marketo

I am new to both making API calls and coding in Apex and feel way over my head. How can I make a call to the Marketo REST API through Salesforce? Is this possible through Apex? For example, ...
0
votes
1answer
308 views

Apex Callouts retrieve audio content

I am making a callout to a 3rd party to retrieve an mp3 file The endpoint is a HTTP GET (https://api.ubity.com/recording?key=HV5nPTLk98UPeTLxqwA8&callid=ABC12345) The response is the actual MP3 ...
0
votes
1answer
85 views

How do i get end point url?

I have to connect two different sales force org am getting error for 400 and 302 and bad request. Where do I get refresh token, Please can you give suggestion what correction should I do? httprequest ...
0
votes
0answers
65 views

How to read the content in RestRequest

I am passing a xml request and trying to read the req.requestBody but getting the value as Blob[2122]. How can I read the value which I have send for request in httppost. Please guide me.
0
votes
1answer
634 views

Cannot access url https://login.salesforce.com/services/oauth2/token

My customer's webmaster uses REST API to create Leads in salesforce, from his website. Since yesterday he is getting a connection error. The password has not changed. I tried to make a call from a ...
0
votes
1answer
1k views

how to retrieve specific fields for Object using REST api?

I know describe gives me a list of all the fields available for the specific Object.What if i want to retrieve a subset of the available fields.And I want to do this via REST api? The reason being is,...
0
votes
2answers
5k views

How to use C# to access Apex REST Service

I want to use C# to access my own apex rest service in a managed package. I can easily do it in IOS and Android. But in C# I wrote code below, it can not work. string restQuery = App._instanceUrl + @"...
0
votes
1answer
145 views

Cannot retrieve mobile delivery status via REST API call - Exact Target

Basically after sending to a list of mobile contacts, I wish to retrieve tracking events via API calls, currently I am unable to access delivery status for outbound mobile events. When I manually ...
0
votes
0answers
272 views

“Peer not Authenticated” Error?

I have created a custom Rest Service in SFDC . There is a external java program who is calling this service getting the error "Peer not Authenthicated". However, it work fine when make a call to ...
0
votes
1answer
145 views

Custom Rest Service with OAuth 2.0 and Connected Apps

Is there any example/sample code of Custom Rest web service in Apex with OAuth 2.0 and Connected Apps? Also wanted to know how to expose the object based on the selective parameters. If parameters ...
0
votes
0answers
62 views

Consumer key and secret not working

I am using the following tool: Advanced Rest Client, installed from google extensions to make a simple test - request to our sf instance. I have created a connected app in our sf instance, and ...
0
votes
0answers
137 views

How to name number property for JSONGenerator

In the PayPal REST API, there is a credit_card object which has a property called number. Unfortunately, "number" is a reserved keyword in Apex, which means that I can't simply name my property number ...
0
votes
1answer
232 views

REST API call from Salesforce1

I'm trying to make an API call from my Salesforce1 App. I've created a global action and now I would like that action to call my API. I'm not expecting copy-paste solution but it would be nice if ...
0
votes
1answer
35 views

Using Salesforce oauth to make calls to own account/app

We use salesforce in our website. I'm new to it, and still can't find a way to calls REST api to our own account without going long way of visiting oauth login page, granting access etc(oauth flow). ...
0
votes
1answer
524 views

Expired authorization code

I'm trying to use the REST API with OAuth2 in PHP. The problem is that I followed this tutorial : http://developer.force.com/cookbook/recipe/interact-with-the-forcecom-rest-api-from-php And when I try ...
-1
votes
1answer
913 views

how to write a Dynamic SOQL query using condition operator '?' [closed]

client requesting data with some parameters like startdate, enddate, status. based on those parameters i have to return results in httpGet method. 1.if status!=null it will add status =:object.status ...
-1
votes
2answers
65 views

In If condition getting error and not going to Else condition

I have below code where i am chechking if recordtype is not 0 and if its blank then go to else and throw an error.but if recordtype is coming null then its trwoing Attempt to de-reference a null ...
-1
votes
2answers
336 views

How To Redirect Url Restapi to salesforce

I am creating a rest Service and its integrated with external system and sending data to external system through lightning component and its working fine while sending the data from Salesforce. while ...
-1
votes
1answer
50 views

Re-trigger rest call if i get read time out error using apex [closed]

How to re-trigger rest call if i get read time out error using apex. Any blog or link would be fine for me or any example also
-1
votes
1answer
85 views

values are not receiving dynamically in REST API

I wrote the batch and pass the values to REST apex class but when executing the endpoint url it doesn't take the values of fields it only takes names. this is my batch job global class ...
-1
votes
2answers
722 views

How do I delete a Data Extension using the Rest API

I can create rows but I cannot delete them. How do I do this using the Rest API?
-1
votes
2answers
86 views

How to find all Salesforce records with a specific WhoId?

I have a Lead or Contact. I want to find all of the Accounts and Opportunities for that specific Lead or Contact. Is that possible? What would the query look like?
-1
votes
1answer
3k views

QUERY in REST URI in Workbench?

I have been trying to query the Lookup object field in workbench Rest Explorer. Please help me on how to query the Lookup Object Field. /services/data/v20.0/query?q=SELECT Data_Source__c,Name,...
-2
votes
1answer
323 views

Upload Salesforce user profile photo via rest

I am entirely new at this. I want to know if it is possible to upload the user record profile picture via rest. I found that the photo url is exposed via the following /services/data/v41.0/connect/...
-2
votes
1answer
2k views

Calling REST Web Service Using OAuth 2.0 from Apex [closed]

Any good examples of calling a rest web service using OAuth 2.0 from Apex?
-2
votes
1answer
204 views

Problem in converting null or empty string to decimal

I've implemented a REST HTTP method for lead creation. There is a Number field XYZ(16,2) field. When I tried to insert with a null value it is giving an error like invalid decimal. Please help me. ...
-2
votes
1answer
102 views

External website doesn't login ondemand through iframes?

public class CreateEvent{ public Test__c login; public CreateEvent(ApexPages.StandardSetController controller){ this.login= (Test__c)controller.getRecord(); ...
-2
votes
1answer
96 views

Alternate ways to Salesforce Integration than custom REST/SOAP development [closed]

Are there any alternate ways or tools available to integrate Salesforce with other systems (in house + other cloud applications like Facebook) apart from writing our own REST/SOAP API callouts ?
-2
votes
1answer
94 views

Not able to call Salesforce REST web service from Java web application as Salesforce has disabled SSL 3.0 encryption

What needs to be done/changed from the java application side to access Salesforce orgs?
-4
votes
1answer
32 views

Callout Unit Test Need help in getting code coverage its getting to 46%

I have written a Callout Class Called RestCallout which makes Callout to an end point, get the httpResponse as xml and from the body of response gets different elements and updates the database. For ...
-4
votes
0answers
20 views

Rest API - Marketing Cloud - How to get a complete information of a Trigger? [closed]

I need to get complete information of a particular trigger using rest api. I tried this, but get only minimal information. GET: https://www.exacttargetapis.com/messaging/v1/messageDefinitionSends/key:...