Pass the user input from workflow task to another task in a workflow

Priyanka9
Tera Contributor

I have a custom workflow on a custom table that creates a series of tasks. The first task's user input is required in the second/next task.

I wish to store the data in 'user Input' field data somewhere in the workflow so that I can use that as a description for the next task in the workflow.

Is it possible, please suggest !!!

I think the workflow.scratchpad can be used to store the value. I'm not sure how to pass the value from the workflow task to scratchpad.

1 ACCEPTED SOLUTION

Hi,

You can still do that.

Put on run script activity in between this two tasks. Then get the journal entries.

var gr = new GlideRecord('customtablename');

gr.addQuery('parent',current.number);

gr.query();

if(gr.next()){

workflow.scratchpad.notes = gr.work_notes.getJournalEntry(-1);

}

 

Then this scratchpad can be used in next task.

Thanks,
Ashutosh

 

View solution in original post

5 REPLIES 5

Hi,

You can still do that.

Put on run script activity in between this two tasks. Then get the journal entries.

var gr = new GlideRecord('customtablename');

gr.addQuery('parent',current.number);

gr.query();

if(gr.next()){

workflow.scratchpad.notes = gr.work_notes.getJournalEntry(-1);

}

 

Then this scratchpad can be used in next task.

Thanks,
Ashutosh