Flow Designer and inline script to access action outputs

Kipp Gremillion
Tera Guru

I am working on my first Flow and what I have created is a Data Stream action which creates an output object called OutputItems.

In a sub-flow I am using an Update Record action to save these values from OutputItems properties. I need to convert one property from a "0" or "1" to a true/false.  The problem I have is that in the inline script I cannot access the action OutputItems object.  It is also not part of fd_data object.  It is available as a pill in the data so I can drag and drop a OutputItems pill to fields to write to the record.  Just not with the Inline Script.  When referencing the object I get the error "Error: "OutputItems" is not defined.,Detail: "OutputItems" is not defined."

How to I access my object in the inline script?

1 ACCEPTED SOLUTION

Kipp Gremillion
Tera Guru

So the problem is resolved.  What I didn't see is that with the fd_data object, the #2 pill (OutputItems) was sorted at the bottom of the properties rather than the top to match the order of the pills.  I failed to see the underscore in front of all properties except for the OutputItems has a space in front so it sorted at the bottom and I expected it at the top.  I find in confusing why the inconsistent behavior.

 

find_real_file.pngfind_real_file.png

View solution in original post

3 REPLIES 3

Andrew Albury-D
Mega Guru

Hi Kipp,

Without a screenshot or example of your flow it's difficult to say why you can't access the data from a script line, but in this case, would it not be better to use a Script Parser step in your Data Stream action to create the true/false as another output at the time it runs? This will save a lot of headaches in the future!

Thanks,

Andrew

Kipp Gremillion
Tera Guru

The OutputItems pill on the left is the object returned from my action.  It's not an option in the fd_data where I expected.  Should it be or am I going about this wrong?

 

find_real_file.png

Kipp Gremillion
Tera Guru

So the problem is resolved.  What I didn't see is that with the fd_data object, the #2 pill (OutputItems) was sorted at the bottom of the properties rather than the top to match the order of the pills.  I failed to see the underscore in front of all properties except for the OutputItems has a space in front so it sorted at the bottom and I expected it at the top.  I find in confusing why the inconsistent behavior.

 

find_real_file.pngfind_real_file.png