Here is my Power Automate flow –
TheIndex is initialized to 0 and Alpha to 1 and each is then incremented in Apply to Each step below.
FilterArray looks as expected.
Get-Name works as expected and return True for the array element body('FilterArray')[variables('TheIndex')]
Set Name does not work. Name is set to body('FilterArray')[variables('Alpha')] rather than the value of body('FilterArray')[variables('Alpha')]
The results are:
Excel results: These are the various iterations I tried. The correct result should be Stuart which is FilterArray[3].
Hi @SBT2 ,
You are putting the expression directly into the variable Value field, this will not work.
You need to put the below expression from the expression tab into the variable, then only it will work.
Thanks
Vivek Pande
Thanks for the reply. That is how I entered the expression. Is this what you meant?
I was wrong, I had just pasted the expression into the field. When I entered in the expression dialog it worked. Thanks.
You can mark this thread as Accept as solution and close it
Thanks
Vivek Pande
User | Count |
---|---|
25 | |
15 | |
14 | |
10 | |
9 |
User | Count |
---|---|
50 | |
29 | |
28 | |
25 | |
23 |