How to Work POSTMAN GET / POST / PUT/ PATCH / DELETE in rest API on Account Object in Salesforce | Handling POST, PUT, PATCH and DELETE Requests Rest API in postman request in Salesforce

Vijayk
3 min readSep 3, 2022

--

Hey guys, today in this post we are going to learn about How to Handling POST, PUT, PATCH and DELETE Requests Rest API in postman request in Salesforce.

Final Output → To get source code live demo..

Get Access Token

Method:- Post

URL:- https://login.salesforce.com/services/oauth2/token?grant_type=password&client_id=3MVG9fe4g9fhX0E4VMI4vmhIgc3fISaldH3KjsBnWKMFMuoPrmsU1W.K3X2gm.yC0xP2EH5NLjhyEiJ&client_secret=0C9A28886564ED36855929B7CC67517826AFB769C2DFBCEE6BC265B70B&password=delhi@123&username=vijay.kumar6799@gmail.com

Query Params

client_id

3MVG9fe4g9fhX0E4VMI4vmhIgc3fISaldHyZzoDa3KjsBnWKMFMuoPrmsU1W.K3X2gm

client_secret

0C9A28886564ED36855929B7CC67517826AFBAEA8C2769C2D

username

vijay.kumar6799@gmail.com

Send Request Output

Insert Multiple Accounts

Method:- POST

URL:- https://rif-dev-ed.my.salesforce.com/services/data/v52.0/composite/tree/Account/

Authorization Type:- Bearer Token

Authorization:- 00D5g000007oJsa!AQUAQBqnIYqdxDY4Z9rPKdWtRru2fwVrRZrnwGNSIr.cLPC2CdA5LOZ1mxufQX2kAOK1br_DNMSabgt2ZJmOvcuKQaJ83KLT

API Type:- JSON

Send Body Request

Send Request Output

Get Account Record from API

Method:- GET

URL:- https://rif-dev-ed.my.salesforce.com/services/data/v52.0/sobjects/Account/0015g00000nvRIjAAM

Authorization Type:- Bearer Token

Authorization:- 00D5g000007oJsa!AQUAQBqnIYqdxDY4Z9rPKdWtRru2fwVrRZrnwGNSIr.cLPC2CdA5LOZ1mxufQX2kAOK1br_DNMSabgt2ZJmOvcuKQaJ83KLT

Send Request Output

Patch (Update) Account Record

Method:- PATCH

URL:- https://rif-dev-ed.my.salesforce.com/services/data/v52.0/composite/sobjects

Authorization Type:- Bearer Token

Authorization:- 00D5g000007oJsa!AQUAQBqnIYqdxDY4Z9rPKdWtRru2fwVrRZrnwGNSIr.cLPC2CdA5LOZ1mxufQX2kAOK1br_DNMSabgt2ZJmOvcuKQaJ83KLT

API Type:- JSON

Send Body Request

Send Request Output

FAQ (Frequently Asked Questions)

What is the Postman API?

The Postman API endpoints enable you to integrate Postman within your development toolchain. You can add new collections, update existing collections, update environments, and add and run monitors directly through the API. This enables you to programmatically access data stored in your Postman account.

What is Postman and why it is used?

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs.

What is the difference between JSON and REST API?

JSON is based on a subset of the JavaScript Programming Language. Representative State Transfer (REST) is a client-server architectural style that uses the HTTP protocol in a simple and effective way. Systems that adhere to REST practices are often referred to as RESTful interfaces.

Final Output → To get source code live demo..

Hi, This is Vijay Kumar behind the admin and founder of w3web.net. I am a senior software developer and working in MNC company from more than 8 years. I am great fan of technology, configuration, customization & development. Apart of this, I love to write about Blogging in spare time, Working on Mobile & Web application development, Salesforce lightning, Salesforce LWC and Salesforce Integration development in full time. [Read full bio] | | The Sitemap where you can find all published post on w3web.net

Originally published at https://www.w3web.net on September 3, 2022.

--

--

Vijayk
Vijayk

Written by Vijayk

Easy to learn step-by-step online tutorial by www.w3web.net

No responses yet