Showing results for 
Search instead for 
Did you mean: 
Post Patron
Post Patron

In Powerapp, before submitting to a sharepoint list, I need to check to see if document with 2 fields the same already exists

 I have a sharepoint list with documents containing a employee clock and dept number.  I have an app where the employee can add records.  Before they click save to submit the new document I want to check to make sure that clock and dept is not already in the list.  I was trying to use filter but must have issue with syntax

On the submit check mark I have this

if (countrows(filter('lyn overtime',clock = textinput1.text, 'dept no'.value = datacardvalue13.selected.value))=0,submitform(editform1))

I'll add the notify later if I can ever get this filter to work.

Super User
Super User

Hi, try the below


If (IsBlank(LookUp('lyn overtime', clock = textinput1.text &&  'dept no'.value = datacardvalue13.selected.value)),SubmitForm(editform1),Notify( "Record already exists", NotificationType.Warning))



Post Patron
Post Patron

Worked perfect.. ty

Nice one, if you are all sorted do you want to mark it as complete to help others that find this post

Helpful resources

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

Users online (4,796)