This is difficult to explain in words. I'm trying to get a value for a single variable in an array. I would like to avoid using Parse JSON, because its a pain to mess with. I would like to use expressions. Any ideas? @RezaDorrani , you just helped me getting to this point. I think this is an easy one.
Here is the value of my array variable PendingECNs:
I need to pull out ECNID for each line in the array, to use in the Get Item 'ID' field. any way to get this with an expression?
Solved! Go to Solution.
Assuming PendingECNs is variable of type array which has objects which includes the ECNNumber
For loop the array
and once again just use the item() property to get context of current item
and then to fetch the value from the currently indexed item object
use item()?['ECNID']
? - checks if the node exists in the object
ECNID - is the name of the node in your object
Regards,
Reza Dorrani
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Simple as that! I figured you would have it in a second.
Here is what it looks like.
Assuming PendingECNs is variable of type array which has objects which includes the ECNNumber
For loop the array
and once again just use the item() property to get context of current item
and then to fetch the value from the currently indexed item object
use item()?['ECNID']
? - checks if the node exists in the object
ECNID - is the name of the node in your object
Regards,
Reza Dorrani
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
User | Count |
---|---|
27 | |
16 | |
16 | |
12 | |
11 |
User | Count |
---|---|
42 | |
30 | |
28 | |
24 | |
24 |