Trigger and Action

NO IMAGE

 Home > Connect > Power Automate > Trigger and Action

Explain and use triggers and actions

TypeTrigger or action nameDescription
TriggerWhen BOT execution is completedTriggered by the completion of BOT execution.
Get the BOT's output value and use it in subsequent actions.
ActionExecute BOTYou can execute BOT on cloud BOT as an action.
You can specify input values when executing BOT. Also, the output value at the time of BOT completion can be used in subsequent actions.
ActionUpload FileUpload file data to Cloud BOT.
File reference / File ref value can be obtained as an output value, and that output value can be used in "Execute BOT" (action).
ActionDownload FileDownload file data from Cloud BOT.
You can get the file from the File ref value.

When BOT execution is completed (Trigger)

Triggered by the completion of BOT execution.
Get the BOT's output value and use it in subsequent actions.

"When BOT execution is completed" setting value (Setup)

LanguageSelect the BOT execution language.
ContractSelect the Cloud BOT contract.
You can select a contract with an external connection enabled in Cloud BOT.
BOTSelect the BOT to trigger.
You can select a BOT that has already been externally connected with the cloud BOT.

Click here for parameter definitions "When BOT execution is completed".

"When the BOT execution is completed" execution result

The return value will be output as the result of executing the "When the BOT execution is completed". Click here for details.

Execute BOT (Action)

You can execute BOT on cloud BOT as an action.
You can specify input values when executing BOT. Also, the output value at the time of BOT completion can be used in subsequent actions.

"Execute BOT" setting value (Setup)

LanguageSelect the BOT execution language.
ContractSelect the Cloud BOT contract.
You can select a contract with an external connection enabled in Cloud BOT.
BOTSelect the BOT to execute.
You can select a BOT that has already been externally connected with the cloud BOT.
Async[Yes] Run the BOT asynchronously. Returns an immediate response when the BOT starts running.
[No] Run the BOT synchronously. Returns a response when BOT execution is completed.
*If BOT is executed asynchronously or 25 seconds have passed since BOT execution started, a response will be returned at that point even if BOT is being executed. The status will be "2" (running). Also, a Cast URL will be issued.
Data1〜10The input values entered in Data1~Data10 are handed over as input data 1~10 when executing the BOT.
Please refer to here for the input format.
API parametersAPI Parameters set the payload (JSON) of BOT execution API requests.

Click here for parameter definitions "Execute BOT".

"Execute BOT" execution result

The return value will be output as the result of executing the "Execute BOT". Click here for details.

About the output value of BOT

Click here for the output format.

It can be passed to API parameters by defining it in JSON format. When used together with Data1 to Data10, it will be overwritten to the JSON Input value.
*Data after Data11 cannot be passed directly.

Upload File(Action)

Upload file data to Cloud BOT.
File reference / File ref value can be obtained as an output value, and that output value can be used in "Execute BOT" (action).

"Upload File" setting values (Setup)

LanguageSelect the BOT execution language.
ContractSelect the Cloud BOT contract.
You can select a contract with an external connection enabled in Cloud BOT.
File nameSpecify a name for the file. Relates the Name from the output value of the preceding trigger or action.
File contentSpecify the file (binary data). Correlate file content from previous trigger or action output values.

Click here for parameter definitions "Upload File".

"Upload File" execution result

The return value will be output as the result of executing the "Upload File". Click here for details.

Download File(Action)

Download file data from Cloud BOT.
You can get the file from the File ref value.

"Download File" setting values (Setup)

LanguageSelect the BOT execution language.
ContractSelect the Cloud BOT contract.
You can select a contract with an external connection enabled in Cloud BOT.
File refSpecifies a file reference / File ref value.

Click here for parameter definitions "Download File".

"Download File" execution result

The return value will be output as the result of executing the "Download File". Click here for details.

About Data values

Input/output data 1 to 10 defined in Cloud BOT correspond to Data1 to Data10 of Power Automate.

*Values after 11 cannot be passed directly to Power Automate, so it is necessary to analyze the json data output to OutputJson of Power Automate.

About the text format of Data1~10

The text format is determined by each data type set in the cloud BOT value.

Data type About text formatting Examples
Text type Express in plain text. Waffle (plain)
Multiple text type Express by pipe delimiter. Recommended|Discounted Items|Baked Sweets
File type Represents the Ref value of a file.
(If there are multiple files, they are represented by pipe delimiters.)
jobs/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/files/…

Group

Group lines are separated by commas.

Data type Examples
Text type Waffle (plain) , Waffle (sugar)
Multiple text type Recommended|Discounted Products|Baked Sweets,Recommended|Baked Sweets
File type jobs/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/files/…
, jobs/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/files/…