Search

Insert Record

Last Updated: Mar 15, 2021

Articles

Use this function to insert a record in the Salesforce based on the given type of input.

Syntax

Insert Record (token, username, password, SObject_type, name, site, phone)

Parameters

Input Parameter Name Description
token Token used to connect to particular Salesforce account
username Salesforce account username
password Salesforce account password
SObject_type Type of the record to insert
name Name of the record
site Site of the record
phone Phone number of the record

To know more about token, click here.

Returns

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

Sample

Insert Record (ABCDCEF, john@gmail.com, pass@123, Account, john@gmail.com, http:// example.com, 1234567890)

  • Uses token ABCDCEF to connect to Salesforce with username john@gmail.com and password pass@123, inserts a record of type Account with name john@gmail.com, site http:// example.com and phone number 1234567890.
    Returns the Record ID of the inserted record.

To view all the Salesforce functions, click here.

Did you find what you were looking for?