Salesforce API POST/PATCH request. SOQL query in Postman example.

How to use SOQL in Salesforce REST API ? Would you please provide an example how to use POST and PATCH request in Postman ?
0
give a positive ratinggive a negative rating
12 Sep 2023 at 06:51 PM
Hi,

To create or update Salesforce records using API via Postman, your API call have to contain the correct params and body content.

Create a record in Salesforce using an API POST

In your Salesforce Platform API collection in Postman, go to REST > SObject and choose SObject Create:

salesforce postman create record post api

In Path Variables in Params, the Key should inlcude: SOBJECT_API_NAME and Value should contain the name of entity, for example Account, Contact, Lead, Opportunity (depending on what type of record you want to create):

salesforce postman create record using api params

In Body, you have to include at least the mandatory fields (required):

salesforce postman create record api body fields

Update a record in Salesforce using an API PATCH

In your Salesforce Platform API collection in Postman, go to REST > SObject and choose SObject Rows Update:

salesforce postman update record api patch

In Path Variables in Params, the key SOBJECT_API_NAME should contain the name of entity, for example Account, Contact, Lead, Opportunity (depending on what type of record you want to create). The key RECORD_ID should contain the ID of record you want to update.

salesforce postman updare record api patch params

In body, you have to include the fields and values you want to update.
0
give a positive ratinggive a negative rating
27 Oct 2023 at 05:44 PM
Tim
Share on FacebookShare on TwitterShare on LinkedInSend email
x
x
2024 AnswerTabsTermsContact us