cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MohammedShaban
Frequent Visitor

Compare SharePoint list and excel sheet and create/update items that match

I have a sharepoint list and an excel sheet that comes from Document library.

Now I need to compare the Title from the List with the Project Name from the Excel Sheet.

If they are matching then the existing item in the list needs to be updated with the values in Excel, if not a New Item has to be created with the values from Excel.

 

I tried many ways like adding a condition to check the Title with Project Name, if the condition is false then it is creating as many items as the items in sharepoint list.

 

Used a Filter array and compared Title with Project Name and used a condition empty(body(Filter_array)) is true create item, if false update item.

If there is no item matching the body of the Filter array is empty hence it is not creating item.

 

Please suggest me with the solution.

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @MohammedShaban ,

 

I've made a test for your reference,

 

1\My SP list:

vbofengmsft_0-1652926619085.jpeg

2\The Excel table

vbofengmsft_1-1652926638965.jpeg

3\The flow

vbofengmsft_2-1652926654180.jpeg

vbofengmsft_3-1652926660500.jpeg

4\The Result

vbofengmsft_4-1652926707708.jpeg

 

Best Regards,

Bof

 

 

 

 

 

 

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @MohammedShaban ,

 

I've made a test for your reference,

 

1\My SP list:

vbofengmsft_0-1652926619085.jpeg

2\The Excel table

vbofengmsft_1-1652926638965.jpeg

3\The flow

vbofengmsft_2-1652926654180.jpeg

vbofengmsft_3-1652926660500.jpeg

4\The Result

vbofengmsft_4-1652926707708.jpeg

 

Best Regards,

Bof

 

 

 

 

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,104)