
I have an object that instantiated in Flow called emailReplyObect that resembles the following:
{
"values": [
{
"key1": "value1"
},
{
"key2": "value2"
},
{
"key3": "value3"
},
{
"key4": "value4"
},
{
"key5": "value5"
},
{
"key6": "value6"
},
{
"key7": "value7"
},
{
"key8": "value8"
},
{
"key9": "value9"
},
{
"key10": "value10"
}
]
}I need the value of the "keyn" and the value of "valuen".
I also need to iterate through them to get the value of each. The "keyn" is used for additional logic else where in the Flow which is why I need the value of "keyn".
To iterate through it, I'm assigned the arry of objects "values" to an array:
Then I iterate through that array:
This iterates through each object in the array:
Here is the layout of the entire Flow:
I tried using parseJson, but it just outputs:
Schema is either defined manually or automatically. Same result.
The problem is I'm not sure how to get the values of "keyn" and the values of "valuen". Suggestions?
There really is no value for Keyn. Key# is the index that will get you the value of the item in the array.
values[key#]