I am adding two outcomes yes or no. I want to get the id of each outcomes using script.
Do you want the ID in the client side form renderer or do you want the name of the process variable created?
The variable created is based on the form id (which can be taken from the form key of the task).
Retrieving data ...