3

Is it possible to see which automation a query activity is part of?

1

Yes...kind of. Via the API you can access the Activity Object and search via the name of your Query to get the Program.ObjectID for each Automation. You then use the Program Object to gather the name of the Automation.

These objects are the precursor objects to Automations (Programs), but still function, unlike most of the Automation Objects that are shown in the documentation.

Pull associated Program ObjectIDs:

      <RetrieveRequest>
        <ObjectType>Activity</ObjectType>
        <Properties>Program.ObjectID</Properties>
        <Properties>Name</Properties>
        <Properties>CustomerKey</Properties>
        <Filter xsi:type="SimpleFilterPart">
            <Property>Name</Property>
            <SimpleOperator>equals</SimpleOperator>
            <Value>{{yourQueryName}}</Value>
        </Filter>
     </RetrieveRequest>

Gather name of Automation via Program.ObjectID:

     <RetrieveRequest>
        <ObjectType>Program</ObjectType>
        <Properties>Name</Properties>
        <Properties>Description</Properties>
        <Filter xsi:type="SimpleFilterPart">
            <Property>ObjectID</Property>
            <SimpleOperator>equals</SimpleOperator>
            <Value>{{ObjectID from other call}}</Value>
        </Filter>
     </RetrieveRequest>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.