AddOrRemoveContactToHistory
Associate or dissociate a contact to a history record.
Stored Procedures Specific Information
Process of adding or removing contact to history
This stored procedure associates or dissociates a contact to a history record. The required parameters HistoryId and ContactId each accept a single value. The required parameter Type accepts a single value: 'add' or 'remove'. For example:
For Adding Contact To History
EXEC AddOrRemoveContactToHistory HistoryId = 'aafe05a3-3654-4ee4-8162-4ebc4f25f789', ContactId = '75e724dc-8f62-4070-bb87-38787eed09e3', Type = 'add'
For Removing Contact From History
EXEC AddOrRemoveContactToHistory HistoryId = 'aafe05a3-3654-4ee4-8162-4ebc4f25f789', ContactId = '75e724dc-8f62-4070-bb87-38787eed09e3', Type = 'remove'
Input
| Name | Type | Description |
| HistoryId | String | The unique identifier (id) for a given history record. |
| ContactId | String | The unique identifier (id) for a given contact. |
| Type | String | Whether to add or remove the contact. Set to 'add' or 'remove'.
The allowed values are add, remove. |
Result Set Columns
| Name | Type | Description |
| Status | String | Stored Procedure Execution Status |