July 08, 2023
In this blog we will discuss how to create, update, delete, query and queryAll the records using rest api through postman.
To get Access Token you need to create the first Connected App in Salesforce ORG then you can find client Id and client secret there.
1.1 Paste the below URL in postman set method GET
1.2 Click on Send Button
Here:
Create Record Using REST API
URL: {{_endpoint}}/services/data/v{{version}}/ui-api/records
Here:
Body:
{
"allowSaveOnDuplicate": false,
"apiName": "Account",
"fields": {
"Name": "TestDemoAccount1"
}
}
Update Record Using REST API
URL: {{_endpoint}}/services/data/v{{version}}/ui-api/records/{{record_id}}
Body:
{
"allowSaveOnDuplicate": false,
"fields": {
"Name": "TestDemoAccount"
}
}
Here:
Delete Record Using REST API
URL: {{_endpoint}}/services/data/v{{version}}/ui-api/records/{{record_id}}
Here:
Query Record Using REST API
URL: {{_endpoint}}/services/data/v{{version}}/query/?q=SELECT FIELDS(All) FROM EventLogFile LIMIT 200
Here:
QueryAll Record Using REST API
URL: {{_endpoint}}/services/data/v{{version}}/queryAll/?q=SELECT+name+from+Account
Here:
I hope this blog helped you!