Overview

Skill Level: Any

Prerequisites

This interface supports programmatically calculating the number of contacts for a query. A data job is submitted to calculate the query and GetJobStatus must be used to determine whether the data job iscomplete. You may only call the Calculate Query data job for a particular query if you have not calculated the query size in the last 12 hours.

Step-by-step

  1. Syntax of the request and response SOAP for CalculateQuery

    Operation  <CalculateQuery>     
    Elements  QUERY_ID  The ID of the Query to be calculated.   
      EMAIL  Optional  If specified, Watson Campaign Automation sends a notification email to the provided email address when the job is complete. 
    Example¬† <soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/”
    xmlns:ses=”SilverpopApi:EngageService.SessionHeader”
    xmlns:user=”SilverpopApi:EngageService.ListMgmt.UserActions”>
    <soapenv:Header>
    <ses:sessionHeader>
    <ses:sessionid>16FE7B75445E6C704707025B1B7BBEE5</ses:sessionid>
    </ses:sessionHeader>
    </soapenv:Header>
    <soapenv:Body>
    <user: CalculateQuery>
    <user: QUERY_ID>59294</user: QUERY_ID>
    <user:EMAIL>somebody@domain.com</user:EMAIL>
    </user: CalculateQuery>
    </soapenv:Body>
    </soapenv:Envelope> 
       
    Response  <RESULT>     
    Elements  SUCCESS  TRUE if successful   
      JOB_ID  Identifies the Watson Campaign Automation Background Job created and scheduled for this export.   
    Example¬† <envelope:Envelope xmlns=”SilverpopApi:EngageService.ListMgmt.UserActions”
    xmlns:envelope=”http://schemas.xmlsoap.org/soap/envelope/”>
    <envelope:Header/>
    <envelope:Body>
    <RESULT>
    <SUCCESS>TRUE</SUCCESS>
    <JOB_ID>499600</JOB_ID>
    </RESULT>
    </envelope:Body>
    </envelope:Envelope> 
       

Join The Discussion

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