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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to extract values ...
Power Automate
Answered

How to extract values from different items (same GUID) and copy it over to a new sharepoint list into one item with same GUID?

(0) ShareShare
ReportReport
Posted on by 48

Hello,

 

I have two sharepoint list. List A has one item with a GUID-number. Sharepoint List B has multiple items with the same GUID-number. Is it possible to exctract a certain value from all the items in list B, and copy it as a list in the one unique item with the same GUID number in list A?

 

i have tried for so long, but i cannot figure it out. Could someone give me a step by step guide, i would be really happy!

ListA and List B.jpg

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @DPH 

     

    Before I give you an answer could you please let me know List A GUID value already exists or do we need to create it?

     

    Thanks

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @DPH 

     

    Also ListA  column Course text type?

     

    image.png

     

    Or

     

    image.png

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @DPH 

     

    Here for building the flow I have used List A Column 'Course' is Multiline text.

     

     

    Follow the below steps:

     

    image.png

    image.png

     

    Above expression is as follows:

     

    union(body('Select'),body('Select'))

     

    So at this stage we have unique GUID's from List B. Next iterate all in a loop. The below all the steps are in one loop.

    image.png

     

    Above Compose 2 expression is

    item()?['GUID']

     

    Filter Array GUID is equal to map the Compose 2

     

    Then under the Select Map expression is 

    item()?['Course']

     

    Compose 3 expression is 

    join(body('Select_2'),outputs('Compose_4'))

     

    Next again inside the same loop we need to filter the ListA

     

    image.png

     

    Above under the Filter Query map the Compose 2 output.

     

    Next we need to check whether the value already exists or not.

     

    image.png

     

    Expression for the above condition is as follows:

     

    length(outputs('Get_items_2')?['body/value'])

     

    Then under the Create Item & Update Item I have mapped the below values:

     

    Title: Output of Compose 2 (This field is mandatory and I need to map something here)

    GUID: Output of Compose 2 

    Course Output of Compose 3

     

    This is my test result

     

    image.png

     

     

     

     

  • DPH Profile Picture
    48 on at

    The GUID number in List A always exsist before list B, if its not there, then it should not output.

  • DPH Profile Picture
    48 on at

    Thank you so much @abm! This worked right away, your a life saver!

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @DPH 

     

    Thanks for your reply. Glad to hear that all working as expected.

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard