web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Set property doesn't a...
Power Automate
Unanswered

Set property doesn't apply

(0) ShareShare
ReportReport
Posted on by 141

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.

 

Kenjoy84_0-1620934957543.png

Kenjoy84_1-1620935203545.png

 

Categories:
I have the same question (0)
  • PrasadAthalye Profile Picture
    on at
    Re: Set property doesn't apply

    Manager is an array. Please use following expression...

     

    setProperty(variables('PertManager'), 'Manager', createArray(setProperty(variables('PertManager')['Manager'][0], 'Content', 'prasad')))

     

  • Kenjoy84 Profile Picture
    141 on at
    Re: Set property doesn't apply

    @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!

     

    Kenjoy84_0-1620943943280.png

     

  • Verified answer
    PrasadAthalye Profile Picture
    on at
    Re: Set property doesn't apply

    Got it. We are missing 1 step. Please add SET variable and set the expression to output of Compose. Refer below...

     

    PrasadAthalye_0-1620999783193.png

     

    Then you can use another compose and set expression as variable and you will see that variable is updated.

     

  • Kenjoy84 Profile Picture
    141 on at
    Re: Set property doesn't apply

    @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!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard