Trigger loop package

The Trigger loop package enables you to run a series of actions when a trigger event occurs. You can insert multiple trigger loops within a bot or nest one trigger loop within another trigger loop.

Actions in the Trigger loop package

Action Description
Trigger loop Opens the loop to run a series of actions when a trigger event occurs.
Note: Events within the Trigger loop follow a sequential order and any parallel events that occur during this time are queued.
Handle Specifies the trigger event and runs the actions that are inside the container when that event occurs.

Drag the Handle action into the Trigger loop (in Flow view) or below the Trigger loop (in List view).

Break Terminates the trigger loop for bot to continue with other actions in the trigger event. If there is no Break action after a trigger loop handle, the bot will go back to the start of the trigger loop and wait for the next configured action. So ensure you add the Break action to exit the trigger loop and move on to next action or else the bot will run indefinitely. For example, the Break action in a bot can be used when the user must close or cancel a form.

Drag the Break action into the trigger handle container.

Triggers in the Handle action

Triggers Description Options
Email Trigger Triggers that starts the bot when an email is sent or received. 在触发循环句柄中使用电子邮件触发器
File Trigger Triggers on a file event. 在触发器循环句柄中使用文件触发器
Folder Trigger Triggers on a folder event. 在触发器循环句柄中使用文件夹触发器
Hot key Trigger

Triggers on a key press event.

在触发器循环句柄中使用热键触发器
Form Trigger Trigger on form element events.
交互式表单
Note: If an active form is terminated using the Close button from the task bar, it will not terminate the associated bot containing Trigger loop and Interactive forms packages.
在触发器循环句柄中使用表单触发器
Object Trigger Trigger for the bot to start when the Select main event takes place on the trigger interface element. (Users click a button)
Note: Interface triggers for objects are available only for native Windows applications.
在触发器循环句柄中使用对象触发器
Microsoft 365 Outlook Email Trigger Trigger that starts the bot when an email is received by connecting to the Microsoft 365 Outlook server with OAuth2 authentication. 在触发器循环中使用 Microsoft 365 Outlook 触发器: 处理
Process Trigger Trigger that starts the bot on a process event. 在触发器循环句柄中使用流程触发器
Service Trigger Trigger that starts the bot when service start, stop, pause, and resume. 在触发器循环句柄中使用服务触发器
ServiceNow New Record Trigger New record trigger for ServiceNow . 在触发器循环句柄中使用 ServiceNow 新记录触发器
ServiceNow Updated Record Trigger Update record trigger for ServiceNow . 在触发器循环句柄中使用 ServiceNow 更新的录制触发器
Window Trigger Trigger that starts the bot based on window actions. 在触发器循环句柄中使用窗口触发器