Flow Designer Data Stream output is coming empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi,
I have a Flow Designer Data Stream and it is working as expected till the Splitter step. On the next step(Script Parser), the input is in the format:
inputs.sourceItem= {Dispute Details:{},Comment Details:{},Document Details:{}}
item= parsed(inputs.sourceItem)
and there would be n number of this nested object. I am defining the script parser output as:
output.targetObject=item.
The scripts are working till here! I have logged it.
On Action Output, output variables are:
targetObject(Object) with 3 child Objects as Dispute Details, Comment Details, Document Details.
But the output is coming as null/empty.
Output Variables:
Empty Output:
Some help/guidance will be really appreciated here!!!
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @VeenaShaji ,
It seems like you didn't assign the output correctly..
In your code: output.targetObject=item (Instead of outputs , you written output here, because of that output is mapped incorrectly..)
Correct Code:
var safeObject = JSON.parse(JSON.stringify(item));
outputs.targetObject = safeObject;
If this works, Please Mark it as Helpful and please Accept My Solution..
Best Regards
SIVASANKARI S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Sorry, my bad. its actaully outputs.targetObject=item
