Overview

Skill Level: Any

Prerequisites

This interface exports a mailing template. The results are an .stl file (a zip file containing XML with a Watson Campaign Automation Template extension) which will be written to the FTP account associated with the current session. You can (optionally) copy the resulting file to Stored Files.

Step-by-step

  1. Syntax of the request and response SOAP for ExportMailingTemplate

    Operation <ExportMailingTemplate>    
    Elements TEMPLATE_ID Numeric identifier for the mailing template to be exported.  
      ADD_TO_STORED_FILES Optional

    Use the ADD_TO_STORED_FILES parameter to write the output to the stored files folder within Watson Campaign Automation.

    Omitting the ADD_TO_STORED_FILES parameter will cause export files to be moved to the user’s FTP space, under the download directory.

    Example <soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/”
    xmlns:ses=”SilverpopApi:EngageService.SessionHeader”
    xmlns:user=”SilverpopApi:EngageService.MailManagement.UserActions”>
    <soapenv:Header>
    <ses:sessionHeader>
    <ses:sessionid>06395F3FA6D07365CBA5D01AF14F3F56</ses:sessionid>
    </ses:sessionHeader>
    </soapenv:Header>
    <soapenv:Body>
    <user:ExportMailingTemplate>
    <user:TEMPLATE_ID>2605309</user:TEMPLATE_ID>
    <user:ADD_TO_STORED_FILES/>
    </user:ExportMailingTemplate>
    </soapenv:Body>
    </soapenv:Envelope>
       
    Response <RESULT>    
    Elements SUCCESS TRUE if successful  
      FILE_PATH Returns the file path and name of the export file.  
    Example <envelope:Envelope xmlns=”SilverpopApi:EngageService.MailManagement.UserActions”
    xmlns:envelope=”http://schemas.xmlsoap.org/soap/envelope/”>
    <envelope:Header/>
    <envelope:Body>
    <RESULT>
    <SUCCESS>TRUE</SUCCESS>
    <FILE_PATH>/download/My Mailing Template.stl</FILE_PATH>
    </RESULT>
    </envelope:Body>
    </envelope:Envelope>
       

Join The Discussion

Your email address will not be published. Required fields are marked *