Is there a way to start an automation via AMPScript API within a landing page?
I tried the following and it throws an error that the automation is deleted
. However, the automation is not deleted.
%%[
SET @automation = CreateObject("Automation")
SetObjectProperty(@automation , "CustomerKey", "CT_Offers")
SET @auto_statusCode = InvokePerform(@automation, "start", @errorCode)
]%%