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 combined two sh...
Power Automate
Unanswered

How to combined two share point lists

(0) ShareShare
ReportReport
Posted on by 16
Categories:
I have the same question (0)
  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @SwiftCrypt,

    We Have Only Create csv table Based On columns That Present in Database List If Job Title matched of "New Hire Entry".  Then delete the Csv File after each run?

  • v-jefferni Profile Picture
    on at

    Hi @SwiftCrypt ,

     

    The Job Titles column of New Hire Entry list seems like a LookUp column, isn't it? Besides, if you get all the items from both lists to generate the CSV table and create file, it will include all the new hire entries every time, which I think is not necessary. You can use a When a new item is created trigger for new entries in New Hire Entry list. So, every time a new hire entry is created in that list, the flow runs, and will get that one new entry only. 

     

    Flow steps:

    1. trigger: When an item is created 

    2. Get items, filter query Title eq '(Job Titles Value from dynamic contents)'

    vjefferni_0-1670567882729.png

    3. Apply to each result of Get items

    4. Compose to generate an array, use union expression to join the new entry together with the job title

    [

    union(outputs('Get_items')?['body/value']?[0],triggerOutputs()?['body'])

    ]

    5. Select operator and map column names and values from trigger and get items action, choose columns based on your need.

    6. Create CSV table use outputs of Select.

    vjefferni_1-1670567960126.png

    7. Create file, send Email, delete file.

     

    Best regards,

     

     

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hello @SwiftCrypt,

    - Taking 2 SharePoint lists and extracting data from them in the flow based on a single column

    - I Have Created Sample for Your Query.

    Amit_Sharma_1-1670571204596.pngAmit_Sharma_2-1670571232246.pngAmit_Sharma_3-1670571281941.png

     

     

  • SwiftCrypt Profile Picture
    16 on at

    How would I do this if I want to manually trigger it?

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @SwiftCrypt,

    You Can Perform Some Changes in Flow And add One Additional Column In your New Hire Entity List.

     

    1. Add Column in New Hire Entity List with Name Status and Select Column Type Choice then set Default Value Field New.

     

    Amit_Sharma_0-1671089608500.png

    2. Use Apply to Each Iterate on Value which return by Get items From Database Action.

    Amit_Sharma_1-1671091573504.jpeg

     

    3. Use Get items from New Hire Entity Action in apply to each and get data based on Performing Filter Query

    Amit_Sharma_2-1671091886060.pngAmit_Sharma_3-1671091941557.png

     

    4. Then Use Condition Action To check whether the Get items from New Hire Entity Action return any values or not.

    Amit_Sharma_4-1671092094997.png

    Amit_Sharma_5-1671092123033.png

     

    5. if Condition is true Then All Steps Are Same As shown Above reply Instead of last apply to each 2 action that is only use for update status New to Old of New Hire Entity List Rows.

    Amit_Sharma_6-1671092401475.pngAmit_Sharma_7-1671092480823.png

     


    After this I guess you are good to go.

     

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

     

     

  • SwiftCrypt Profile Picture
    16 on at

    the get items from new hire isn't populating title I would have to custom text it or write it out completely the way you had it. 

    SwiftCrypt_0-1671128138487.png

     

    It's not even showing the list of column in the list. When using the line you gave me I always returned a false entry and nothing would appear but would run successfully. The "Title" column in New Hire is used as a lookup what's in the column "Title" in Database and match it.

     

  • Verified answer
    Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @SwiftCrypt,

    Please Modify Flow for matching lookup column.

    1. Please Remove All the Filters in Get items from New Hire Entity Action.

    Amit_Sharma_0-1671197058956.png

     

    2. After That Use Filter Array Action and Set From that value return by Get items from New Hire Entity Action.

    Amit_Sharma_1-1671197322780.png

     

    3. Then Select Look Up Column value in left side Filter array.

    Amit_Sharma_3-1671197632814.png

    Here Title1 Is look up Column in My List

     

    4. After Use Edit in advanced Mode apply Both Condition Title1 and status.

    Amit_Sharma_4-1671197775723.png

    @and(equals(item()?['Title1/Value'], 'Sam'),equals(item()?['Status'], 'New'))

     

    5. Then Modify Left Side Value of Condition Action.

     

    Amit_Sharma_5-1671197888543.png

    empty(body('Filter_array'))

     

    After this I guess you are good to go.

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard