Pass value from 1 task activity to other task activity in workflow

David Cross
Tera Expert

Hello All,

How to Pass value from 1 task activity to other task activity in workflow..

 

Can you share me an example 

1 ACCEPTED SOLUTION

Vrushali  Kolte
Mega Sage

Hello @David Cross ,

 

You can pass value from one activity to another with the help of scratchpad variable, below is the syntax-

Assign value to a variable in one activity :

workflow.scratchpad.variable_name="value";

Then in the other activity you can access the value using :

var value = workflow.scratchpad.variable_name;

 

If my answer solves your question then please mark it as Accepted ✔️ and Helpful 👍 based on the impact.

 

View solution in original post

2 REPLIES 2

Vrushali  Kolte
Mega Sage

Hello @David Cross ,

 

You can pass value from one activity to another with the help of scratchpad variable, below is the syntax-

Assign value to a variable in one activity :

workflow.scratchpad.variable_name="value";

Then in the other activity you can access the value using :

var value = workflow.scratchpad.variable_name;

 

If my answer solves your question then please mark it as Accepted ✔️ and Helpful 👍 based on the impact.

 

dgarad
Giga Sage

Hi @David Cross 

You can use workflow.scratchpad.variablename for passing

If my answer finds you well, helpful, and related to the question asked. Please mark it as correct and helpful.

Thanks
dgarad