Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Flow Designer Data Stream output is coming empty

VeenaShaji
Tera Contributor

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:

VeenaShaji_0-1770282011559.png

Empty Output:

VeenaShaji_1-1770282081338.png

Some help/guidance will be really appreciated here!!!

 

 

Thanks in advance.

 

 

2 REPLIES 2

sivasankaris
Tera Guru

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

Sorry, my bad. its actaully outputs.targetObject=item