ODBC Driver for Salesforce

Build 22.0.8462

Undelete

Restores from Salesforce's RecycleBin a deleted record.

Procedure-Specific Information

To restore an object from Salesforce's recycle bin you need to use one of the following examples:

1. By specifying the Id of the deleted record.


Execute Undelete Id='1'

2. By specifying a list of deleted record Ids.


Insert into Account#temp (ID) VALUES (1)
Insert into Account#temp (ID) VALUES (2)
Insert into Account#temp (ID) VALUES (3)

Execute Undelete Id='Account#temp'

3. By specifying a list of Ids that are XML formatted.


Execute Undelete XML = '<undelete xmlns="urn:enterprise.soap.sforce.com"> <ids>1</ids> <ids>2</ids> <ids>3</ids> </undelete>'

Input

Name Type Description
ID String The Id of the object that has been deleted. This or XML input are required.
XML String List of ids formatted in XML. This or ID input are required.

Result Set Columns

Name Type Description
Success String Returns true if the object is restored successfully.
ID String The Id of the restored object/s, if the operation is successful.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462