Skip to main content

Questions tagged [sfrestrequest]

0 votes
1 answer
333 views

I attempted to send an HTTP request and transmit a JSON to the Salesforce REST API in the following manner, but encountered the following error: Error: [ { "message": "JSON request body ...
yukichia's user avatar
1 vote
2 answers
2k views

I am trying to make a callout to an open public api. When I tested it on Postman, it is giving me the expected response. But when I tried it on the Apex class, the response is giving me the following ...
Argen Turatbek's user avatar
10 votes
2 answers
60k views

I know this must have been posted here and I've tried the solutions I've searched across the web but I am still getting the error {"error":"invalid_grant","error_description&...
nekmancer's user avatar
  • 103
0 votes
0 answers
90 views

This is my vf page <apex:page controller="AccountRest"> <apex:sectionHeader title="Accounts" subtitle="List View"/> <apex:pageBlock> <apex:pageBlockTable value=...
Lokesh Malviya's user avatar
1 vote
1 answer
5k views

I am trying to handle multiple error codes in my REST service. Can anyone guide me if I am doing this correctly. try { if(Limits.getDmlRows() < Limits.getLimitDmlRows()){ ...
John M's user avatar
  • 33
2 votes
1 answer
6k views

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 ...
AjaySFDC's user avatar
  • 618
0 votes
0 answers
109 views

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 ...
Danish's user avatar
  • 165
0 votes
1 answer
2k views

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-...
Sfsfsf's user avatar
  • 3
6 votes
1 answer
4k views

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 ...
Greg J's user avatar
  • 175
1 vote
1 answer
933 views

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 ...
Logesh9788's user avatar
1 vote
0 answers
124 views

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. ...
Tara's user avatar
  • 11
5 votes
2 answers
4k views

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 -...
SEuser's user avatar
  • 1,850
7 votes
2 answers
7k views

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 ...
dphil's user avatar
  • 5,985
1 vote
2 answers
144 views

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?
Bartley's user avatar
  • 5,347
1 vote
1 answer
151 views

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 ...
Bradley Thomas's user avatar

15 30 50 per page