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 item...
Power Automate
Answered

Update sharepoint items or create new from Excel file

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

I would like to ask for some help to update the SharePoint list from the Excel table stored in SharePoint Document Library.

What is the idea:

Manual trigger button - > Check the excel table if Title matches the SharePoint item title. If yes then Update, if no the create new item.
Flow should also check for blank rows in excel Table and ignore them when updating SharePoint list.

Progress so far:

Gochix_0-1687534029827.pngGochix_1-1687534046109.png

Condition: length(body('Get_items')?['value'])

And for some reason I can't update the columns I want. I'm trying to update the Price column from excel table but can't select any other than SharePoint values here...

Gochix_3-1687534154374.png

 


So the main achievement would be to be able to update price, and to only try update ( apply to each ) those rows from excel that match SP list item. Otherwise if I have 1000 empty rows, it will try to loop through them anyway.

Any help would be appreciated. I did search within the forum but I couldn't get answers on these issues.

Categories:
I have the same question (0)
  • Gochix Profile Picture
    1,935 Moderator on at

    So far I've managed to get the flow to update the SharePoint List item if exist, create if doesn't.

    However, I'm trying to increment PartID number by 1 every time I create new item.

    Tried this tutorial : TUTORIAL 

    but when trying to implement inside my flow then PartId is increased either by + 2 or +3 or highest PartID is not found and PartID for new item is set to 1 therefore messing my List.

     

    Any help would be apperciated. Here is my current flow:

    Gochix_0-1687606609200.png

     

    Gochix_1-1687606640308.png

     

    Condition expression : 

    length(body('Get_items')?['value'])

     

    Gochix_2-1687606736064.png

     



  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @Gochix ,

     

    You could try this way to get the largest PartID,

    vbofengmsft_0-1687747328738.png

    Best Regards,

    Bof

     

     

  • Gochix Profile Picture
    1,935 Moderator on at

    @v-bofeng-msft , thank you. As simple as that but works like a charm.

  • v-bofeng-msft Profile Picture
    on at

    Hi @Gochix ,

     

    Sorry I missed something important, the expression should be:

     

    last(sort(body('Select')))
     
    Best Regards,
    bof

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