DelinkRelatedRecords
Breaks the relationship between two records (for example, removing a contact from a deal).
Procedure-Specific Information
ZohoCRM Supports related lists for some specific modules and we can remove the relation between modules by providing the ModuleName, Related ModuleName, RecordId of the module and RecordId of the related module.
NOTE: We can remove multiple relations by providing comma separated value of Related record id's.
For Example:
EXEC DelinkRelatedrecords Module = 'Campaigns',RecordId = '4482327000000467001', RelatedModule = 'Leads', RelatedRecordId = '4482327000000271429' EXEC DelinkRelatedrecords Module = 'Campaigns',RecordId = '4482327000000467001', RelatedModule = 'Leads', RelatedRecordId = '4482327000000271429,4482327000000271430'
Input
| Name | Type | Description |
| Module | String | The name of the primary supported module from which a related record is removed. |
| RelatedModule | String | The name of the related module containing the record to be delinked. |
| RecordId | String | Unique identifier of the record in the primary module. |
| RelatedRecordId | String | Unique identifier of the related record to be removed from the relationship. |
Result Set Columns
| Name | Type | Description |
| Status | String | Indicates whether the operation was successful. |
| RelatedRecordId | String | The identifier of the unlinked record. |
| Message | String | The message from the Zoho CRM API indicating if the relation was removed. |