Function Reference > System variables > CurrentTaskId
  

CurrentTaskId

Returns the task ID as a string value. Use CurrentTaskId with any function that accepts string datatypes.