Search

Insert Record

Last Updated: Nov 4, 2020

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

Returns

Return Value Description
Output
  • On Success: 1, Record ID
  • On Failure: 0, Error Message

Sample

Insert Record (ABCDCEF, new_user, pass@123, manager, John, http:// example.com, 1234567890)

  • Uses the token ‘ABCDCEF’ to connect to the salesforce with username ‘new_user’ and password ‘pass@123’, inserts a record of type ‘manager’ with name ‘John’, 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?