Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

DeleteList_st method allows to delete one or more lists in MailUp, with all the related data. For new integrations with MailUp it has to be preferred to similar method MailUpSend.DeleteList

Method parameters

  • string DeleteList_st(string accessKey, int listId, stringautoId)
    • accessKey: access key obtained using the LoginFromId method
    • listId: list identifier
    • autoId: identifier which allows MailUp to know if a list was created in an automated context or not. In the Microsoft Dynamics CRM it corresponds to the ORGUNIQUENAME.


Parameters autoId e listId can be used together or alternatively; the following scenarios are possible:

  • If listId value > 0, the corresponding list is deleted. Values provided via autoId are ignored.
  • If listId value =< 0 and autoId is defined, all the lists associated to the external identifier provided via autoId are deleted.

SOAP Examples

Request

SOAP Request
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ws="http://services.mailupnet.it/WS">
   <soap:Header/>
   <soap:Body>
      <ws:DeleteList_st>
         <!--Use accessKey value that is returned by LoginFromId method-->      
         <ws:accessKey>HzAgwRRJaAKBtkgNWpkAuURfV4SxMm6T3HJegRuSkUivKJElNNcmSQe8nqGyoM9</ws:accessKey>
         <ws:listId>2</ws:listId>
         <ws:autoId>MYUNIQUEID</ws:autoId>
      </ws:DeleteList_st>
   </soap:Body>
</soap:Envelope>

 

Response

Response includes ID of deleted list. In case of error "errorCode" is not zero and an error description is provided.

When request specifies a list ID greater than zero only one list is deleted and the response is as follows:

DeleteList_st response (when request is based on list ID >0)
<DeleteList_st>
   <errorCode>0</errorCode>
   <errorDescription></errorDescription>
   <Lists>
      <List Id="2"></List>
   </Lists>
</DeleteList_st>

When request specifies a list ID equal or lower than zero then all the lists with specified "autoId" are deleted and the response is as follows:

DeleteList_st response (when request is based on autoId)
<DeleteList_st>
   <errorCode>0</errorCode>
   <errorDescription></errorDescription>
   <Lists>
      <List Id="8"></List>
      <List Id="9"></List>
      <List Id="14"></List>
      <List Id="11"></List>
   </Lists>
</DeleteList_st>

 

 

  • No labels