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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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

    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

    @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

    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

    @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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard