Search

Update Record

Last Updated: May 10, 2022

Articles

Use this function to update a record in the Salesforce with the given parameters.

Syntax

Update Record (token, username, password, SObject_type, record_id, 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 update
record_id ID of the record to update
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 Updated Successfully
  • On Failure returns 0 | Error Message

Sample

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

  • Uses token ABCDCEF to connect to Salesforce with username john@gmail.com and password pass@123, updates the record with ID ER900 of type Account with name updated_record, site http:// example.com and phone number 1234567890.
    Returns Record Updated Successfully on the updating the record.

To view all the Salesforce functions, click here.

Did you find what you were looking for?