Introduction

You will always end up facing a requirement either to get notified when a workflow is running or do some other job based on the status of the workflow. For which, Alteryx designer gives us the option to trigger an event from a workflow. The event can be any one of the below;

  1. Send mail
  2. Run Command

triggering-events-workflow

Send mail – event

This option is used to send a mail at different instances of the workflow. When you click on the send mail option as shown, it will open a pop-up window as shown below. By default, it has all the information about the workflow, in which we can add our own message. To send a mail we need to give the SMTP configuration.

We can also add attachments like documentation about the workflow or details of the person mentioned who can be contacted.
triggering-events-workflow

The event can be triggered at the available predefined instances of the workflow which you can find below.
triggering-events-workflow

 

In the mail, we can add the assets that are added to the workflow and can also add our files as assets to the mail as an attachment through the assets tab.
triggering-events-workflow

 

Run Command – Event 

The run command option allows us to open any application that is installed and it can also trigger another workflow to run. It opens the selected services or application and runs the given command argument in that application.

You can select any program on the computer which needs to be opened using the browse option near the command box as shown below.
triggering-events-workflow

Please refer the blogs below for more information on using the Run command:

  1. https://community.alteryx.com/t5/Alteryx-Server-Knowledge-Base/Scheduling-Workflows-Using-Event-Run-Command/ta-p/36583
  2. https://help.alteryx.com/2018.3/RunCommand.htm

Conclusion

You can add multiple events for a single workflow, like sending a mail before the start and after the completion of a workflow. We can also schedule a dependent workflow to run after completion of the parent workflow at the workflow level while developing itself.

 

Subscribe to our Newsletter

5920 Windhaven Pkwy
Plano TX 75093.

+1 888-227-2794

+1 972-232-2233

+1 888-227-7192

solutions@visualbi.com