can we read a value returned from a workflow scrip...
# suitescript
p
can we read a value returned from a workflow script in another workflow action script
b
go through Custom Action
especially the example in the first note
p
Thanks, but this just explains how we can store a return value from a workflow action script into a workflow field. I wanted to know if I can access this workflow field value in another workflow action script. To be more clear, Inorder to read the current scripts wf fields we do
Copy code
var result = runtime.getCurrentScript().getParameter({ name: 'custwfstate_response_2' });
Similarily can we read a workflow field of another script.
b
only if you store the result of the first workflow action field in a workflow field that you read in another script
if you wish to suffer and have 2 different interconnected workflows, then you are going to want to store that value on a field on the record instead
p
That makes sense, thanks!