Skill Level: Beginner
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 is complete. You can call the Calculate Query data job for a particular query if the query size was not calculated in the last 12 hours.
Syntax of the request and response XML for CalculateQuery
Operation <CalculateQuery> Elements QUERY_ID The ID of the Query to be calculated. Example
<Envelope> <Body> <CalculateQuery> <QUERY_ID>59294</QUERY_ID> </CalculateQuery> </Body> </Envelope>
Response <RESULT> Elements SUCCESS TRUE if successful. ¬† JOB_ID Identifies the Acoustic Campaign Background Job that is created and scheduled for this export. ¬† Example
<Envelope> <Body> <RESULT> <SUCCESS>TRUE</SUCCESS> <JOB_ID>499600</JOB_ID> </RESULT> </Body> </Envelope>
To obtain the job status, you will have to use the GetJobStatus API.