Add a trigger module to a basic scenario
Trigger modules are placed at the beginning of a scenario. These modules begin a scenario execution when specific criteria when there has been a change in a given service. The change can be a creation of new records, deletion of a records, update of a records, and so on.
Polling modules check the service at a set time interval and return information about changes that occurred during that time interval. If there have been no changes, the trigger does not execute the scenario.
In this example, you will add a trigger module that runs every 15 minutes and starts a scenario if any requests have been submitted to a specific queue. The scenario then converts those requests to a project.
This example modifies the scenario created in Create a basic scenario.
Prerequisites
You must create the scenario described in Create a basic scenario before following this procedure.
Add and configure the trigger module
Add the trigger module
-
Open the scenario in the scenario editor.
-
Right click on the first (Search) module and select Delete module.
The module is deleted, leaving a blank placeholder.
-
Click the blank module, and select ÃÛ¶¹ÊÓƵ Workfront from the list of apps.
-
Select Watch Record.
-
Make sure that the module uses the same connection as the rest of the modules in the scenario.
-
In the Filter field, select New Records Only.
-
In the Record Type field, select Issue.
-
In the Outputs box, select
ID
,Name
, andProject ID
. -
Click OK to save the module settings.
A Choose where to start window appears.
-
Select From now on.
Schedule the trigger module
-
Click the clock on the Watch Records module.
The Schedule setting window opens.
-
In the Run scenario field, select At regular intervals.
-
Click OK.
Update the second module
Because the first module has been replaced, the second module must be mapped to the new first module.
- Open the Convert object module.
- In the Issue ID field, delete the black ID block. The block is black because the module it was mapped from is no longer available.
- Select the ID block under the first module (Watch Records) to map it to the second module.
- Click OK.
Test and activate
-
Go to the Workfront environment that Fusion is connecting to and add an issue.
-
Click Run once in the lower-left corner of the scenario editor.
-
Examine the output to ensure that the scenario ran as expected.
-
When you are satisfied that the scenario is working as expected, click the Scheduling toggle in the lower-left of the screen to On.
This activates the scenario.
-
In Workfront Fusion, click Save near the lower-left corner to save your progress on the scenario.
note important IMPORTANT Save often as you hone and test a scenario.
Resources
- For more information on webhooks, see Instant triggers (webhooks) in ÃÛ¶¹ÊÓƵ Workfront Fusion.