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 / How To Combine Two Sha...
Power Automate
Answered

How To Combine Two SharePoint lists with different column names

(0) ShareShare
ReportReport
Posted on by 1,652 Moderator

Hello!

 

I have two SharePoint lists:

Adrian_Celis_0-1620237425892.pngAdrian_Celis_1-1620237435985.png

 

And I would like to combine them using a common column name 'Title' and 'Date'.

Example:

Adrian_Celis_2-1620237502410.png

 

How would you create an array containing only two columns (Title and Date) that is a combination of the data of two tables.

 

This is what I got so far but I got an error most probably because the column names are different.

 

Adrian_Celis_3-1620237641911.png

 

Thanks so much for the help!

Adrian

 

 

 

Categories:
  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @Adrian_Celis 

     

    You can combine the two arrays from the get items using the union() expression and then use a select to create an array of the two fields you are looking for:

     

    DamoBird365_0-1620241836744.png

     

    If the field names are different on the date, you might have to create a logical expression

     

    coalesce(item()?['date'],item()?['date2'])

     

    This would return the first non blank/empty value.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

  • Adrian_Celis Profile Picture
    1,652 Moderator on at

    Hi @DamoBird365 

     

    Amazing. It works! Thanks a lot 🙂

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
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#2
Henil Profile Picture

Henil 128

#3
anirudhev Profile Picture

anirudhev 124

Last 30 days Overall leaderboard