Search

Get Record

Last Updated: Feb 14, 2022

Articles

Use this function to fetch a record details from the Salesforce based on the given type of input.

Syntax

Get Record (token, username, password, record_id)

Parameters

Input Parameter Name Description
token Token used to connect to particular Salesforce account
username Salesforce account username
password Salesforce account password
record_id ID of the Record to fetch the details

To know more about token, click here.

To get record_id:

  • Log in to Salesforce, go to All Apps->Services->Accounts.
  • Click on account name to get the record_id.

Returns

Return Value Description
Output
  • On Success returns 1 | Record content
  • On Failure returns 0 | Error Message

Sample

Get Record (ABCDCEF, john@gmail.com, pass@123, ER900)

  • Uses token ABCDCEF to connect to Salesforce with username john@gmail.com and password pass@123, gets the details of the record ER900.
    Returns the Record content of the record.

To view all the Salesforce functions, click here.

Did you find what you were looking for?