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

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:
I have the same question (0)
  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at
    Re: How To Combine Two SharePoint lists with different column names

    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
    Re: How To Combine Two SharePoint lists with different column names

    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

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard