Workflow script error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2024 04:49 AM
Hi!
I am trying to pass a value from one workflow to another workflow, but the child workflow gives an error.
Could someone help me?
This is the parent workflow script (Run script):
workflow.scratchpad.var_manager = true;
This is the child workflow script (Approval - User):
var s = workflow.variables.u_manager;
workflow.scratchpad.var1 = s;
if (s == true)
{
answer.push('556d805fdb489c5089bf0056f3961949');
}
Child workflow inputs:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2024 05:06 AM
Hello @DoDo labs___ ,
Hover into the child approval- user activity that posted above, you will see the error logs there like which line or thing has error. Post those ss or image here and also post ss of your whole parent workflow.
Thank you!!
Thank you!!
Dnyaneshwaree Satpute
Tera Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2024 05:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2024 06:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2024 07:16 AM
I found the solution to the error message: The 'answer' variable was not declared.
This is the new child workflow script:
var answer = '';
var s = workflow.variables.u_manager;
if (s == true)
{
answer.push('556d805fdb489c5089bf0056f3961949');
}
But I still can't pass the value from the parent workflow to the child workflow.