Search

Delete Record

Last Updated: Nov 4, 2020

Articles

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

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 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: 1, Record Deleted Successfully
  • On Failure: 0, Error Message

Sample

Delete Record (ABCDCEF, new_user, pass@123, ER-90)

  • Uses the token ‘ABCDCEF’ to connect to the salesforce with username ‘new_user’ and password ‘pass@123’, deletes the record ‘ER-90’.
    Returns ‘Record Deleted Successfully’ on deleting the record.

To view all the Salesforce functions, click here.

Did you find what you were looking for?