FuelSDK-Python icon indicating copy to clipboard operation
FuelSDK-Python copied to clipboard

Possible to access Automation objects?

Open f4f343w4tcfwv4tz5tb5 opened this issue 7 years ago • 4 comments

I don't see this capability but thought we might be able to add it.

f4f343w4tcfwv4tz5tb5 avatar Jan 22 '18 13:01 f4f343w4tcfwv4tz5tb5

So after painless testing I figured out how you can do it. And essentially get any SOAP object you want. Just change the obj_type to something you would want and update the props also

stubObj = ET_Client.ET_Client(False, False, {
            "clientid": "clientId",
            "clientsecret": "clientSecret"
        })

search_filter = {'Property': 'CustomerKey', 'SimpleOperator': 'equals', 'Value': "automation-external-key"}

get = ET_Client.ET_Get(auth_stub=stubObj, obj_type="AutomationInstance", props=["Name", "ScheduledTime", "StatusLastUpdate", "IsActive"], search_filter=search_filter )

print(get.results)

leugimmai avatar Mar 28 '19 18:03 leugimmai

@leugimmai Do you know how to add Activities(i.e. Send Email or Import File) to an Automation?

Thom3435 avatar Apr 19 '19 19:04 Thom3435

@Thom3435 Sorry I do not know how to do it. At least yet....

leugimmai avatar Apr 23 '19 16:04 leugimmai

Is there an equivalent for this in C#? I tried but in version 1.3 "ET_Client" is deprecated and ETClient object does not have an exposed "Get" method.

Thanks.

barokzi avatar Mar 10 '20 21:03 barokzi