TransferAndDeletePipeline
Deletes a specified pipeline in the Deals module and moves all of its stages to a target pipeline, ensuring existing deals keep their stage history.
Procedure-Specific Information
ZohoCRM Supports deleting a pipeline and transferring the associated stages to another pipeline by providing the FromId, ToId,Stages and LayoutId of the related pipeline.
Note: It works only with ApiVersion=2.1.
For Example:
EXEC TransferAndDeletePipeline FromId = '228122000000252002',ToId = '228122000000202388', Stages = '[\n" +
" {\n" +
" \"from\": \"4917206000000006801\",\n" +
" \"to\": \"4917206000000006801\"\n" +
" }\n" +
" ]', LayoutId = '228122000000202258'
Input
| Name | Type | Description |
| FromId | String | Unique identifier of the pipeline to delete and from which associated deals is transferred. |
| ToId | String | Unique identifier of the target pipeline where the deals is transferred. |
| Stages | String | List of stage mappings from the old pipeline to the new pipeline. |
| LayoutId | String | Unique identifier of the layout in the Deals module used to retrieve pipeline details. |
Result Set Columns
| Name | Type | Description |
| Status | String | Indicates whether the transfer operation was successful. |
| JobId | String | The job identifier of the newly created transfer operation. |
| Message | String | The message from the Zoho CRM API indicating if the operation was successful. |