Hi guys, I want help with "set property" for an object.
I set a property in for each loop and seems those are set in the property once.
But, when I output that variable after the loop, it seems all property don't be saved and just empty.
Do you know the solution for this? Thank you for your help.
Solved! Go to Solution.
Got it. We are missing 1 step. Please add SET variable and set the expression to output of Compose. Refer below...
Then you can use another compose and set expression as variable and you will see that variable is updated.
Manager is an array. Please use following expression...
setProperty(variables('PertManager'), 'Manager', createArray(setProperty(variables('PertManager')['Manager'][0], 'Content', 'prasad')))
@PrasadAthalye Thank you, Prasad! I think I can be much closer now. But actually, still output is same.. Do you have any other thoughts? Thank you for your big help!
Got it. We are missing 1 step. Please add SET variable and set the expression to output of Compose. Refer below...
Then you can use another compose and set expression as variable and you will see that variable is updated.
@PrasadAthalye Thank you for your support. I finally succeeded to make my whole script. Because I am new in Power automate, I am not good at grammar, so your help is very valuable for me. Thank you very much!!
User | Count |
---|---|
102 | |
40 | |
29 | |
23 | |
16 |
User | Count |
---|---|
132 | |
52 | |
50 | |
36 | |
26 |