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 / updating a excel table...
Power Automate
Answered

updating a excel table with the output of union

(0) ShareShare
ReportReport
Posted on by 129

Hi all

I'm having some issues trying to use the results of a union expression to update an excel table.

I have a list of items with a reference, some of these lines will share a reference. I am wanting to take the references, remove duplicates and then update a table with just the unique references. So far i have the below

Alastairs_0-1664969333465.png

The output to the table is here

Alastairs_1-1664969380069.png

As you can see the information is there, and it's got the correct amount of lines, just each line is everything.

 

Thanks in advance

Categories:
  • okeks Profile Picture
    802 Super User 2024 Season 1 on at

    You can write the Output of the compose to an Array variable and put that into the apply to each.

    Then you need to put the current item of the apply to each in your Excel Column.

  • Alastairs Profile Picture
    129 on at

    Thank you for your response.

    Sorry to be a pain but would you be able to show an example please? i'm self taught and unfortunately my teacher is a bit rubbish

  • Alastairs Profile Picture
    129 on at

    I think i've worked that part out. i've got this

    Alastairs_0-1664980848868.png

    this has given me the output below, it's so close but it should just have the reference "weds1" instead of how it's showing 

    Alastairs_1-1664980905533.png

    any ideas?

  • Verified answer
    v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @Alastairs 

     

    When you use the union function to deduplicate, you can use Parse Json to complete your needs. 

    1. Put the result returned by Compose into Parse Json: You can stop putting other actions after compose and do a test first, get the array returned by compose and select all and copy it. 

    vliweimsft_0-1665133762286.png

    vliweimsft_1-1665133781327.png

    vliweimsft_2-1665133792440.png

     

     

    vliweimsft_3-1665133801566.png

     

    2. Use Apply to each to traverse the results of Parse Json, in the "uniqueref" field you can see the dynamic content "QuoteId" provided by Parse Json.

    vliweimsft_4-1665133832786.jpeg

     

    vliweimsft_5-1665133845178.png

     

    Best Regards,

    Levi

     

  • Alastairs Profile Picture
    129 on at

    that's a lot of help, thank you

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard