AddOrRemoveCompaniesToContact
Associate or dissociate one or more companies to a contact.
Stored Procedures Specific Information
Process of adding or removing companies to contact
This stored procedure associates or dissociates one or more companies to a contact. The required parameter ContactId accepts a single value. The required parameter CompanyIds accepts a comma-separated list of company Ids. The required parameter Type accepts a single value: 'add' or 'remove'. For example:
For Adding Companies To Contact
EXEC AddOrRemoveCompaniesToContact ContactId = 'a58016a6-780c-48c0-84ff-b6b6b085eb8c', CompanyIds = '5d940c2d-e09e-4204-ad0a-375f73a550a7', Type = 'add'
For Removing Companies From Contact
EXEC AddOrRemoveCompaniesToContact ContactId = 'a58016a6-780c-48c0-84ff-b6b6b085eb8c', CompanyIds = '5d940c2d-e09e-4204-ad0a-375f73a550a7', Type = 'remove'
Input
| Name | Type | Description |
| ContactId | String | The unique identifier (id) for a given contact. |
| CompanyIds | String | A comma-separated list of company ids to associate or dissociate. |
| Type | String | Whether to add or remove the companies. Set to 'add' or 'remove'.
The allowed values are add, remove. |
Result Set Columns
| Name | Type | Description |
| Status | String | Stored Procedure Execution Status |