Skip to main content

Last updated: 2024-06-07


DelContact Method


In this topic:


Overview


The DelContact method removes a contact from a set.


The DelContact method is invoked using the method operation.


Note that this method deletes only the contact's set membership, not the contact itself.


Parameters


Parameter NameTypeRequired?Description
ContactIDStringYesThis is the object ID of the contact that will be removed from the set.
SetOfficeIDStringYesUse the office identifier only, not the full object ID (e.g., 1 instead of Office.1).
SetIDStringYesUse the set identifier only, not the full object ID (e.g., 20 instead of Set.1.20).

Example


The following example removes a contact with object ID Contact.1.14 from a set:


XML
<request version='1.0'>
    <header>...</header>
    <method>
        <DelContact>
            <ContactID>Contact.1.14</ContactID>
            <SetOfficeID>1</SetOfficeID>
            <SetID>20</SetID>
        </DelContact>
    </method>
</request>

The response confirms the deletion:


XML
<response version="1.0">
    <header>
        <sessionClosed/>
    </header>
    <method>
        <DelContact>
            <DeletionResult Contact="1"/>
        </DelContact>
    </method>
    <_status>OK</_status>
    <_systime>2015-10-12T18:05:24</_systime>
    <!--Cost 26 mill seconds.-->
</response>