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
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [sfrestrequest]

The tag has no usage guidance.

0
votes
1answer
33 views

Get Object id using rest api

Is ther any unique id available for object. If yes, How to get a object's unique id ie.object_id using rest api.
1
vote
1answer
2k views

to remove null value from the JSON response

I need help with sorting/cleaning up a json object. I have a global class for calling out responses with 4-5 objects. Consider this example (for sample with 2 objects), My requirement is that I have ...
0
votes
0answers
87 views

entityFields=“*” returns record ={}

Using signed request to run canvas app through a vf page. If entityFields=" * " is specified for the contact vf page, then the returned record is coming as empty. It works perfectly fine for all the ...
0
votes
1answer
585 views

HTTP 400 Bad Request trying to create a bulk API job using RestTemplate

Am trying to use spring RestTemplate to create a bulk API job. Below is the code HttpHeaders headers= new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_JSON); headers.add("sforce-enable-...
5
votes
1answer
1k views

RestContext.request.RequestBody encoding/decoding %5D

I have a REST service which is receiving the encoded body of a post request, and I'm not able to decode the body into a valid json string for parsing. I also don't have much control over the ...
1
vote
1answer
326 views

Is salesforce apex rest parameter name case sensitive?

Let's consider the following rest request url for example https://login.salesforce.com/services/apexrest/paramcheck?User_ID=013456 Is parameter 'User_ID' case-sensitive? Can I use 'user_id' instead ...
1
vote
0answers
109 views

Rest API - Duplicate products and partners are added to opportunities

I'm trying to add 2 products and 2 partners to an existing opportunity through REST API. Even though both products and partners are different, they have the same name and product code in SFDC. ...
3
votes
2answers
2k views

Tooling API execute anonymous results

I am trying to run an execute anonymous statement using tooling API. I am running a very simple System.debug('test'); Now the issue is as this is a GET request, the response that I get is like this ...
7
votes
2answers
3k views

What IP is my Salesforce calling from in my REST call?

I wrote a REST service to call another system from Salesforce. They have firewalls up and such and I instructed them to Whitelist the Salesforce force suggested IPs at Salesforce IP Address to ...
1
vote
2answers
129 views

Checking syntax of SFRestRequest

I am unable to get a response back ("didloadresponse" doesn't fire) from SFRestRequest and I am not sure why. Is the syntax of _queryParams correct?
1
vote
1answer
142 views

Identifying the callback to a SFRestRequest delegate

Is it possible and safe to set the SFNetworkOperation tag in the method initiating the request, and then read it back in the delegate method, to distinguish which request was made? Or is there a ...
5
votes
1answer
7k views

“Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = https://login.salesforce.com/services/oauth2/token” [closed]

I am following web-server authorization flow for establishing the connection between one org to another org. as a 1st step i have get authorization code,when i am proceeding to 2nd step, getting above ...
0
votes
0answers
39 views

is it possible to return the results of a report using the analytics api via SFRestRequest method?

I have built an app using the Salesforce Mobile iOS SDK V2.0 and I would like to be able to display the results of certain reports to the user. Is it possible to return the results of a report using ...
2
votes
2answers
282 views

how can I make a copy of the SFRestRequest block?

I need to know how I can make a copy of the SFRestRequest block in my iOS app built with the Salesforce Mobile SDK 2.0 so that I can not only call once out to salesforce with a SOQL query from one of ...