Skip to main content

Questions tagged [rest-service]

1 vote
1 answer
505 views

I am trying to make a REST call with method as GET and body included . This call works fine from POSTMAN however from salesforce the call at server is received as POST call. Can i make any change in ...
Sara's user avatar
  • 1,195
1 vote
1 answer
160 views

Just get started with Trailhead but got stuck with one challenge. It requires you to write an apex class to implement a REST GET service to retrieve an account and associated contacts. Then you have ...
user9035826's user avatar
0 votes
1 answer
232 views

We got an error about CMS search by Rest API We run this url in workbench, always report errorCode: MISSING_ARGUMENT message: Specify a Library. /services/data/v57.0/connect/cms/items/search?...
Robert Guo's user avatar
0 votes
1 answer
744 views

I am trying to create Callout class to allow external system to update records,like below @RestResource(urlMapping='/OppleadUpdate/*') global with sharing class test_Callout2 { @HttpPut global ...
user116229's user avatar
1 vote
1 answer
618 views

REST Requests seem to be rejected by SF since Winter 23 hit our preview enabled sandbox. Below sample code runs (run on Exec. anonymous) smoothly in v54 sandbox, but fails with below error in v55 (...
Pasan Eeriyagama's user avatar
-1 votes
1 answer
356 views

I'm having an apex class like this: @RestResource(urlMapping='/api/v1') global without sharing class MyRestService { @HttpGet global static List<sObject> getDataById() {...} @HttpPost global ...
Tuấn Trần quốc's user avatar
-2 votes
1 answer
3k views

I am exposing a API in salesforce which will be hit by an external c# application. I am enabled oAuth mechanism. Things are looking good but when the external end point needs to pass user id and ...
klnavi's user avatar
  • 89
4 votes
1 answer
542 views

Is there a way to check if being run in RestResource Context? I have a script that posts messages to an endpoint but we can end up in an infinite loop scenario as they are now posting their comments ...
KarlLivesey's user avatar
0 votes
1 answer
1k views

I am trying to create some records using post method but it throws an exception as below: JSON_PARSER_EXCEPTION "Unexpected parameter encountered during deserialization: JSON Body: { "...
SFDCKASH's user avatar
0 votes
2 answers
225 views

I have a @RestResource web service class that works fine in the real world, and works fine from Workbench, and its test class runs without errors, yet the test class does not actually run the web ...
number41's user avatar
  • 1,034
0 votes
0 answers
352 views

I need to build a json for external rest service(non salesforce platform) dynamically according to mapping stored in a custom metadata object (named SobjectToJSONFieldsMapping__mdt) records(i.e. ...
DavidS's user avatar
  • 37
1 vote
0 answers
1k views

I have the below code trying to make a HTTP callout from a APEX class. The response I get back is System.HttpResponse[Status=Moved Temporarily, StatusCode=302] My class is public with sharing class ...
user97613's user avatar
-1 votes
1 answer
228 views

I'm integrating Square with SFDC, and Square has nice webhooks (https://developer.squareup.com/reference/square/customers-api/webhooks/customer.created) that it sends for any event on its platform. ...
number41's user avatar
  • 1,034
-2 votes
1 answer
695 views

I need to set below request body in a http rest callout which is working fine in postman. [{ "notification_type": "complaints", "notification_mode": "push&...
Prasad Ruwanpathirana's user avatar
0 votes
1 answer
1k views

I have a requirement and I am not sure is it possible or not. My requirement is that I have a rest service class with @httpGet annotation where I am getting Id of a record after that I need to do rest ...
Salman Khan's user avatar

15 30 50 per page
1
2 3 4 5
8