Skill Level: Any


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.


  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/”
    <user: CalculateQuery>
    <user: QUERY_ID>59294</user: QUERY_ID>
    </user: CalculateQuery>
    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”

Join The Discussion

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