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:
CustomerCode | Price |
X001 | 10 |
X002 | 20 |
X003 | 30 |
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):
CustomerCode | Price |
X004 | 20 |
X005 | 10 |
X006 | 40 |
X001 | 10 |
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!
Solved! Go to Solution.
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
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
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
195 | |
45 | |
45 | |
39 | |
35 |
User | Count |
---|---|
269 | |
83 | |
81 | |
73 | |
70 |