- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2020 02:31 PM
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?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2020 12:04 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2020 04:19 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2020 07:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2020 12:04 PM
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.