I have a flow that aggregates some data into an array where I need to pull some values out. However, because the field name has a space, I’m unable to call it when building a variable in the next step.
What’s the best way to get this data from the array?
Here’s what I tried, then tried quotes, single quotes, removing the space, none of it works.
This is the next step, where I try to declare a variable based on the data
This is the result after a test run - no data at all

1 Like
Hi biltsolutions,
Inside the “Text and Binary functions” there is a “keyword” menu that includes a space character. (written {{space}} in IML functions). Using this space character will allow you to get the data from the array.

4 Likes
Thank you for this! I tried using the “space” object in place of the literal space, but it doesn’t catch anything either.
Here is my config in the aggregator and variable declaration. Does that look right?
Then this is what came out of that last variable:
Removing the number reference (3.Metafiled) in your IML function should resolve the issue.
For example, the IML function for trackingMetafiledID’s variable value should be:
get({{71.array}};Metafield{{space}})
2 Likes
Thank you for all of your assistance. It turns out that the field is only called “id” rather than “Metafield ID.” I only discovered this by putting a variable step in place and catching the entire array, then looking at its contents.
3 Likes
Hello again @biltsolutions 
Great to see that you figured this one out with the assistance of @IOA_Brett 
Thanks for keeping the community in mind and circling back to let us know what did the trick for you. This could help many others who have similar questions 
1 Like