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 Automate - Building Flows
Answered

Updating Elements in Sharepoint List from Excel Table

(0) ShareShare
ReportReport
Posted on by 63

Good afternoon,

 

I have a Sharepoint list where I am adding rows from an Excel table into it. That works great as seen in the pictures:

SRMHD_0-1685885450541.png 

SRMHD_2-1685885482753.png



However, I put as a condition that when the rows aren't empty, it should update the rows instead with the Elements from my Excel table. The condition works perfectly and it goes into Update Elements. But once the Flow runs successfully the Update Action erased the values of the rows, instead of adding the excel data to the assigned columns.

SRMHD_3-1685885952365.pngSRMHD_4-1685885970271.png



Does anyone know how I can make it so it just adds the excel data when it updates and not just erases the data that was already in there?

I have the same question (0)
  • SRMHD Profile Picture
    63 on at
    Re: Updating Elements in Sharepoint List from Excel Table

    If you would like to see any other part of the flow to better understand my problem, I will post it

  • v-wenjuan-msft Profile Picture
    Microsoft Employee on at
    Re: Updating Elements in Sharepoint List from Excel Table

    Hi @SRMHD ,

     

    Here are some questions help me to know more about your scenario:

    1. What content do you put in length() function to tell whether it's empty? Is it output from Excel?

    2. In your "If no" branch, you get items from destination SharePoint list and update them in "Apply to each" right?

    3. Here you filled in dynamic content from Excel action, but should it be empty (in "If no" branch) right?

    vwenjuanmsft_0-1685946064404.png

     

    If my understanding is right above, reason lead to the issue is you feed the SharePoint list with empty dynamic contents from Excel.

    When you update items, you should only fill dynamic contents into those fields you would like to make changes on but leave the remaining alone.

     

    Community Support Team _ Wenjuan Zou

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

     

  • SRMHD Profile Picture
    63 on at
    Re: Updating Elements in Sharepoint List from Excel Table

    Hello @v-wenjuan-msft ,

     

    The length expression looks like this. It basically just checks if it is empty or not.

    SRMHD_0-1685948307006.png


    As for the If no and Update it actually has dynamic expressions from Sharepoint. My excel table is not empty at all.

    SRMHD_1-1685948404216.png


    It gets into the condition without a problem and when it should. But when it updates it just makes every value in it empty.

  • SRMHD Profile Picture
    63 on at
    Re: Updating Elements in Sharepoint List from Excel Table

    And all of those fields selected have values in them. The ones that are empty I didn't put anything in them

  • v-wenjuan-msft Profile Picture
    Microsoft Employee on at
    Re: Updating Elements in Sharepoint List from Excel Table

    Hi @SRMHD ,

     

    Would you please check your length() expression screenshot? seems your put a wrong one.

     

    Wenjuan Zou

  • SRMHD Profile Picture
    63 on at
    Re: Updating Elements in Sharepoint List from Excel Table

    Hi @v-wenjuan-msft ,

     

    Sorry here

    SRMHD_0-1685952326350.png

     

  • SRMHD Profile Picture
    63 on at
    Re: Updating Elements in Sharepoint List from Excel Table

    In the replies are some new screenshots that are more up to date. If anyone has a suggestion I would appreciate it

  • SRMHD Profile Picture
    63 on at
    Re: Updating Elements in Sharepoint List from Excel Table

    This problem is still unsolved. I am open for any suggestions, as I am running out of things to do

  • v-wenjuan-msft Profile Picture
    Microsoft Employee on at
    Re: Updating Elements in Sharepoint List from Excel Table

    Hi @SRMHD ,

     

    So you will "Get items" from your destination SharePoint list and "List rows present in a table" from Excel.

    Then you put a Condition to tell whether "Get items" outputs are empty. 

    If yes, add a new item into destination Sharepoint list, which works fine.

    vwenjuanmsft_0-1686038053821.png

     

    If not, which means the destination list has items existed, you "Get items" from destination Sharepoint list again and "Update items" with dynamic content from Excel action.

    vwenjuanmsft_1-1686038085457.png

     

    Correct me if I make any misunderstandings to your flow process.

    Here are more questions to narrow down your issue:

    1. The dynamic contents of "Value"/"ID" originate from which action? I mean which "Get items"? the first one or the second one?

    2. In your newly posted snap, I notice the dynamic contents you feed to the "Update items" were changed to Sharepoint ones. However, in "If no" branch, the outputs of Sharepoint "Get items" should be empty right? 

    vwenjuanmsft_2-1686038414948.png

     

    As you only share parts of your flow, it's hard to understand it as a whole. Could you please share the complete process and give it an introduction if we still miss the point this time?

     

    Community Support Team _ Wenjuan Zou

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

  • SRMHD Profile Picture
    63 on at
    Re: Updating Elements in Sharepoint List from Excel Table

    Hello @v-wenjuan-msft ,

    Allow me to clarify yoru questions:

    1: The 'value/ID' comes from the second one.
    2: The dynamic values in the newly posted pic are actually not different to the first one. They are all "item()?['Columnname']. The reason in the first one it looks like they are the values from excel is because I changed the Apply to Each value to the output of List rows in table. Which only caused an infinite loop.

    And you are correct. The values of Sharepoint are empty. I am trying to get it to use the values from Excel instead. But I haven't found a way how to do that yet

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

Coming soon: forum hierarchy changes

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 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard