cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
khromykhm
Level: Powered On

Check for duplicates before uploading to SharePoint list

After thorough research, I am not able to find an answer to my simple question, unfortunately.

I have a SharePoint list with e.g. 5'000 entries:

CustomerCodePrice
X00110
X00220
X00330

I have created a user form for end-users to be able to add new entries to this list. It parses a text copied by a user from Excel and creates a collection that later gets Patched to this SharePoint list (it creates new items in this SharePoint list):

CustomerCodePrice
X00420
X00510
X00640
X00110

However, I am struggling to understand what would be the best way to do a check if an entry with this CustomerCode already exists in the SharePoint list to avoid any duplicates to be uploaded by a user? In this example, CustomerCode "X001" marked in red color should not be added to our SharePoint list because it already exists. Any ideas on how to accomplish this?

Many thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Check for duplicates before uploading to SharePoint list

Hi @khromykhm 

 

The step where you are patching data to SharePoint

 

Make a check to see if item already exists

 

IsBlank(Lookup('YourListDataSource',CustomerCode = Userenteredcustomercode))

 

If this returns true - then Path

If not - that means item already exists

 

Regards,

Reza Dorrani

 

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

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: Check for duplicates before uploading to SharePoint list

Hi @khromykhm 

 

The step where you are patching data to SharePoint

 

Make a check to see if item already exists

 

IsBlank(Lookup('YourListDataSource',CustomerCode = Userenteredcustomercode))

 

If this returns true - then Path

If not - that means item already exists

 

Regards,

Reza Dorrani

 

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

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,725)