1. Component introduction
Prerequisites: None
This component retrieves the current task ID.
2. Inputs
For information about the input parameters, see the help text for the component in the application flow editor.
3. Outputs
For information about the output parameters, see the help text for the component in the application flow editor.
4. Component usage example
4.1. Component configuration example
Leave the advanced options at their default values.
4.2. Example execution result
None
5. Example flow
Setup flow
Use the Get current task ID component to retrieve the ID of the task that the robot is currently running.
NoteWhen you run this component in the editor, it returns an empty value. To retrieve the task ID, you must publish the flow to the cloud and run it using a robot.
Use the Record log component to print the value of a specified variable.

Execution result
As shown in the following figure, after the flow runs successfully, the process automatically prints the value of the Get current task ID output to the log panel.