Sample SOAP Request - DeletedItemQueryPage

The following SOAP request queries the list of deleted items with the object type = "Contact". It demonstrates the use of the optional arguments <PageSize> and <StartRowNum> to return a specific number of records starting at a specific row.

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-
secext-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Header>
      <wsse:Security>
         <wsse:UsernameToken>
            <wsse:Username>%%%USERNAME%%%</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">%%%PASSWORD%%%</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
   </soap:Header>
   <soap:Body>
      <DeletedItemWS_DeletedItemQueryPage_Input xmlns="urn:crmondemand/ws/deleteditem/">
         <ListOfDeletedItem>
            <DeletedItem>
               <DeletedItemId />
               <DeletedById />
               <DeletedBy />
               <DeletedDate />
               <Name />
               <ObjectId />
               <Type>='Contact'</Type>
               <ExternalSystemId />
            </DeletedItem>
         </ListOfDeletedItem>
         <PageSize>3</PageSize>
         <StartRowNum>0</StartRowNum>
      </DeletedItemWS_DeletedItemQueryPage_Input>
   </soap:Body>
</soap:Envelope>

Sample SOAP Response

The following SOAP response contains three deleted contact records:

<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <SOAP-ENV:Body>
      <ns:DeletedItemWS_DeletedItemQueryPage_Output xmlns:ns="urn:crmondemand/ws/deleteditem/">
         <ns:LastPage>true</ns:LastPage>
         <ListOfDeletedItem xmlns="urn:/crmondemand/xml/deleteditem">
            <DeletedItem>
               <DeletedItemId>ADSA-921PLC</DeletedItemId>
               <DeletedBy>Joanne Brown</DeletedBy>
               <DeletedById>HRZ780-I5RUE</DeletedById>
               <DeletedDate>08/02/2011 15:19:24</DeletedDate>
               <Name>Person One</Name>
               <ObjectId>ADSA-921PL5</ObjectId>
               <Type>Contact</Type>
               <ExternalSystemId></ExternalSystemId>
            </DeletedItem>
            <DeletedItem>
               <DeletedItemId>ADSA-93EVML</DeletedItemId>
               <DeletedBy>Joanne Brown</DeletedBy>
               <DeletedById>HRZ780-I5RUE</DeletedById>
               <DeletedDate>08/04/2011 12:16:39</DeletedDate>
               <Name>Jordan Lak</Name>
               <ObjectId>ADSA-93EGXJ</ObjectId>
               <Type>Contact</Type>
               <ExternalSystemId>ABC321</ExternalSystemId>
            </DeletedItem>
            <DeletedItem>
               <DeletedItemId>ADSA-93EVFP</DeletedItemId>
               <DeletedBy>Joanne Brown</DeletedBy>
               <DeletedById>HRZ780-I5RUE</DeletedById>
               <DeletedDate>08/04/2011 12:20:44</DeletedDate>
               <Name>J Lak</Name>
               <ObjectId>ADSA-93ET5I</ObjectId>
               <Type>Contact</Type>
               <ExternalSystemId>abc223</ExternalSystemId>
            </DeletedItem>
         </ListOfDeletedItem>
      </ns:DeletedItemWS_DeletedItemQueryPage_Output>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>