Automic Workload Automation

 View Only

Expand all | Collapse all

activate a workflow via restapi call passing a variable to the flow being activated

  • 1.  activate a workflow via restapi call passing a variable to the flow being activated

    Posted Feb 28, 2025 08:32 AM

    How do you activate a workflow via restapi call passing a variable to the flow being activated?



  • 2.  RE: activate a workflow via restapi call passing a variable to the flow being activated

    Posted Mar 03, 2025 01:43 AM

    Hi Ron

    You need to do a POST request on the executions endpoint

    https://docs.automic.com/documentation/webhelp/english/AA/24.3/DOCU/24.3/REST%20API/Automation.Engine/index.html?overrideUrls=../Automation.Engine/swagger.json,../Continuous.Delivery.Automation/swagger.json,../Analytics/swagger.json,../Infrastructure.Manager/swagger.json

    The example from the documentation provides two variables:

        "TEXTFIELD1#": "test",
        "CHECKGROUP1#": "AE/AE"

    You need to catch them in the object (that is started) by either having a promptset attached to it fetching the variables or by utilizing the READ AE script statement.

    Regards
    Joel



    ------------------------------
    ☎️ Swisscom Automation/AI Engineer & 🧙 PEM Creator

    Online Automic Training 24/7:
    https://membership.philippelmer.com/ (deutsch)
    https://pemautomic.com (english)
    ------------------------------



  • 3.  RE: activate a workflow via restapi call passing a variable to the flow being activated

    Posted Mar 03, 2025 01:31 PM

    Thanks for your response.. I will investigate the options you gave...