Last updated: 2024-06-07
DeleteActivityContact Method
In this topic:
Overview
The DeleteActivityContact removes a contact from a calendar activity.
The DeleteActivityContact method is invoked using the method operation.
Note that an activity's primary contact cannot be removed using this method.
Parameters
| Parameter Name | Type | Required? | Description |
|---|---|---|---|
ActivityID | String | Yes | This is the object ID of the calendar activity. |
ContactID | String | Yes | This is the object ID of the contact you want to delete from the activity. |
Example
This example request deletes a contact with object ID Contact.1.130 from an activity with object ID Activity.1.11:
XML
<request version='1.0'>
<header>...</header>
<method>
<DeleteActivityContact>
<ActivityID>Activity.1.11</ActivityID>
<ContactID>Contact.1.130</ContactID>
</DeleteActivityContact>
</method>
</request>The response confirms the deletion:
XML
<response version="1.0">
<header>
<sessionClosed/>
</header>
<method>
<DeleteActivityContact>
<ActivityContact _type="obj" _status="deleted"/>
</DeleteActivityContact>
</method>
<_status>OK</_status>
<_systime>2015-10-12T19:01:06</_systime>
<!--Cost 23 mill seconds.-->
</response>