- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2020 09:57 AM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2020 12:37 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2020 12:37 AM
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