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 / Update Sharepoint List...
Power Automate
Answered

Update Sharepoint List When File Uploaded or Modified

(0) ShareShare
ReportReport
Posted on by 2

Hello,

I am trying to build a flow that updates a sharepoint list as files are added to a folder. The files are excel workbooks that have a common named table and I would like the flow to search for this table when it is uploaded and import that data to a sharepoint list. Much like how the power query function works in excel for example. Thank you,

Alex

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    You can use When file is created in Folder trigger, to run the flow when file are added to folder

     

    Then you can refer to this post on how to get the tables from excel  https://powerusers.microsoft.com/t5/Building-Flows/Send-emails-to-people-in-weekly-reports/m-p/785006 follow the steps from step 5 to get the table from excel.

     

    Once you got table from excel, you can list rows from that table and loop through the rows and within the loop you can add data to SharePoint using Create Item action 

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

     

    Hi @Alex41 

     

    First, Find the specific table in the excel workbook:

     

    You get all the tables in the specific excel workbook.

    And you can filter the exact table you want using the ‘filter array’ action.

    Get the data from the exact table by using the ‘list rows present in a table’ action.

     

    1.12-8.PNG

     

    1.12-11.PNG

     

    Then, import updated excel data into SharePoint list by deleting all the list items and importing all the excel data in the list.

    But, if your SharePoint list is not synchronized with the excel workbook (which means the list contains data not from the excel workbook), then the step must be changed.

     

    Could you tell me whether the SharePoint list contains data not from the excel workbook?

     

    The whole flow is as below:

     

    1.12-7.PNG

     

     

    1.12-9.PNG

     

     

    1.12-10.PNG

     

     

    Best Regards,
    Community Support Team _ Kira Xie
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Alex41 Profile Picture
    2 on at

    Hello,

     

    I am starting from a blank list right now with column names the same as the table headers and won't have any other data than the excel data. I'm having issues when I get to the "Apply to Each 3" stage where when I am selecting the "column1" and "column2" data I do not get the dynamic expression options of the table data.

     

    Best,

    Alex

  • v-yiwenxie-msft Profile Picture
    Microsoft Employee on at

    Hi @Alex41 

     

    In the ‘apply to each 3’ action,

    The expression for column1 and column2 is:

    Items(‘Apply_to_each_3’)?[‘column1’]
    Items(‘Apply_to_each_3’)?[‘column2’]

    1.12-2.PNG

     

    Best Regards,
    Community Support Team _ Kira Xie
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard