Author - StudySection Post Views - 8,182 views
Salesforce Postman

How to Connect Salesforce with Postman

Connected App is provided by the salesforce to connect with the platform from any other application.

Getting Started With Salesforce Connected App:

  1. In salesforce, Go to Quick Search bar and then search for App manager and then click on New Connected App Button.
    postman-1
    postman-2
  2. Now Fill the Connected App Name, API name And Contact.
  3. Select Enable OAuth Settings.
  4. Provide Call Back Url.
  5. Select Access and manage your data (API)‘ in Available OAuth Scopes.
  6. Click the save button and then continue.
  7. Now you will get the consumer key and consumer secret, these two are required for Authentication.

PostMan:

Postman is an application that is used for calling APIs of any platform (Like Salesforce, Dot Net, PHP etc.) and can verify these APIs if are working properly or not.

Getting Started with Postman:

  1. Download and install the Postman.
  2. Now we have to give the URL and 5 required parameters to get the Access Token of Salesforce Org.
  3. URL: https://login.salesforce.com/services/oauth2/token?
  4. Select Body and then form-data and give the parameter:
    Key:-Username, Value:- org Username.
    Key:Password, Value:- org Password.
    Key:grant_type, Value:- Password
    Key:Client_id, Value:- Consumer Key
    Key:Client_secret, Value:- Consumer Secret
  5. Select Post Method and click on send button.
  6. Now you will get instance_url, Access token and Token type.

Retrieving data from Salesforce:

  1. Give the URL.
    Sample URL:https://instanceurl/services/data/v25.0/sobjects/Objectname/Id
    instanceUrl:-In this, we have to give the instance Url we got from the token API in the last step.
    Objectname: Provide the name of the object in this parameter.
    ID: Id of the record we are trying to fetch.
  2. Select Get Method.
  3. Provide the access token in the header section.
  4. Click on the send button in response and you will get the details of the record.

Creating a record in Salesforce:

  1. Give the URL.
    Sample URL: https://instanceurl/services/data/v25.0/sobjects/Objectname
    instanceUrl:- In this, we have to give the instance URL we got from the token API.
    Objectname: In this, provide the name of the object we are trying to create a record.
  2. Select Post method to create the record.
  3. In the Header Section, provide the Access Token.
  4. Select body section and then select ROW and then provide the record details in XML or Json format.
  5. Click on the send button.
  6. Go to salesforce, you will find the new record which you have created from postman.

If you have skills in PHP programming and you want to enhance your career in this field, a PHP certification from StudySection can help you reach your desired goals. Both beginner level and expert level PHP Certification Exams are offered by StudySection along with other programming certification exams.

Leave a Reply

Your email address will not be published. Required fields are marked *

fiteesports.com rivierarw.com cratosroyalbet betwoon grandpashabet grandpashabet giriş deneme bonusu veren siteler casino siteleri