Questions tagged [rest]
The REST API provides a powerful, convenient, and simple Web services API for interacting with Force.com.
880 questions
0 votes
0 answers
46 views
How to send request body in DELETE call?
I have an API that I am calling via External Services that accepts a request body in a DELETE endpoint. The call works fine in Postman, but when hitting it from Salesforce, I get this error: "...
0 votes
0 answers
31 views
Creating Task Using POST Call Through Postman
I am using the connected app to get the access token first and then using the same access token to create task. I am getting. Any idea what can be the issue. { "errorCode": "...
0 votes
1 answer
34 views
Deleting Campaigns from SFMC via REST API
I am currently trying to delete a number of old campaigns from SFMC (not the Sales Cloud object, but the Marketing Cloud object) via the REST API in Postman. I've been using the documentation https://...
1 vote
0 answers
111 views
Bulk API 2.0 Query does not return all data
OK, what I actually want is to query all Bulk Data Load Jobs via Apex, but as an answer to this question shows, that is not possible. The answers led me to try this URL via the REST Explorer of the ...
0 votes
1 answer
163 views
Connected App Oauth Flow for Community User
In my Org, Sharing Settings Account is set to Private. All my Customers can login to a Customer Community to see their Private Account. I want to allow some Customer Account to have a dedicated ...
1 vote
0 answers
97 views
Unable to retrieve the authentication token while calling REST API for Microsoft SharePoint
We are attempting to obtain an authToken for SharePoint authentication using the POST request below. Although we are receiving a 200 response code, the response does not contain the expected binary ...
1 vote
1 answer
81 views
Does composite API not support chatter posts?
Is there an official documentation which shows what list of rest api does composite api supports? I tried this composite api request body. POST_URL : {{_endpoint}}/services/data/v59.0/composite { ...
0 votes
0 answers
60 views
Getting INVALID_SESSION_ID from Salesforce REST API after token refresh
We are getting an INVALID_SESSION_ID when accessing Salesforce via the REST API after a token . We run a refresh token every 30 minutes and have the following settings: User refresh period is 2 hours ...
0 votes
0 answers
114 views
ApexPages.addMessage can only be called from a Visualforce page 500 error when calling an Apex REST service
My company currently has a Salesforce app that creates a Lead in our Salesforce system. The app has a Visualforce page with a link to click on for creating a Lead. Clicking the link calls the method ...
0 votes
1 answer
300 views
Governor Limits - Concurrent Long-Running Transactions
I have a use case where I make several sync outbound calls all within the same transaction to different 3rd party systems (via Omnistudio Integration Procedure). I want to check my understanding for ...
2 votes
0 answers
170 views
How to add/retrieve images to/from the ContentNote via REST APIs?
Context/Scenario: There is an integration with external system which supports display of notes (enhanced notes) and let's users create notes. I am able to create the Salesforce Notes by creating ...
0 votes
0 answers
127 views
addHeader not working when building RestRequest in Test Class
I am trying to create a Test Method which will test a REST API however I keep hitting duplicate rules when I am performing upsert. I have added the addHeader('Sforce-Duplicate-Rule-Header', 'allowSave=...
-1 votes
1 answer
415 views
How can I upload a PDF file to an external service with an HTTP callout? [closed]
We have a REST API that accepts PDF files and will analyze them and give insight about the PDF. I have added an Action Button if the user presses that button it will take all the PDF attachments and ...
-2 votes
1 answer
309 views
System.JSONException: Unexpected character (' ' (code 8195 / 0x2003)): was expecting double-quote to start field name at this line of code
@RestResource(urlMapping='/msy/files/*') global class MSY_LinkCVToFilesService { @HttpPost global static List<FileWrapper> linkcvtoFiles(){ String body = RestContext.request....
1 vote
1 answer
586 views
How can I identify which connections or connected apps are using legacy API versions?
I have received an alert from Salesforce stating I'm using a legacy version of REST / SOAP in my org. Is there I can identify which app / service is using an older version? I have tried following the ...