Search

Delete Record

Last Updated: Mar 15, 2021

Articles

Use this function to delete a record from Salesforce for the input record_id.

Syntax

Delete 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 be deleted

To know more about token, click here.

To get record_id:

  • Login 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 Deleted Successfully
  • On Failure returns 0 | Error Message

Sample

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

  • Uses token ABCDCEF to connect to Salesforce with username john@gmail.com and password pass@123, deletes the record ER900.
    Returns Record Deleted Successfully on deleting the record.

To view all the Salesforce functions, click here.

Did you find what you were looking for?