RestoreRecordsFromRecycleBin
Restore individual or all records from the recycle bin.
Procedure-Specific Information
Executing this stored procedure requires additional OAuth scopes. If you are switching to the v8 schema from another schema, you must reauthenticate with Zoho CRM. To reauthenticate, invalidate the previous persisted OAuthAccessToken by executing the 'RESET CREDENTIALS' query.
Restore all or specific deleted records from the recycle bin. You can query the RecycleBin to fetch deleted records.
To restore specific records, supply the RecordIds parameter with a comma-separated string of record ids.
For Example:
EXEC RestoreRecordsFromRecycleBin RecordIds = '1170218000001543003,1170218000001543002,1170218000001543017';
To restore all records from the recycle bin.
EXEC RestoreRecordsFromRecycleBin;
If the total number of records to be restored exceeds 1000, including the parent record and its associated records, the system schedules the restore action as a background job. If the total record count is 1000 or fewer, the system restores the records immediately.
Input
| Name | Type | Description |
| RecordIds | String | Comma-separated Ids of the records you want to restore. To restore all records from the recycle bin, do not supply a value this parameter. |
Result Set Columns
| Name | Type | Description |
| Status | String | Indicates the outcome of the stored procedure. |
| Code | String | The code returned by the server. |
| Message | String | The message returned by the server. |
| RecordId | String | The Id of the restored record. |