web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Prevent duplicate reco...
Power Apps
Unanswered

Prevent duplicate records in Forms

(0) ShareShare
ReportReport
Posted on by 6

Hi,

 

I'm looking for a way to prevent duplicate entry being send via Forms.

I have registration form linked to SP Lists. In this form, people fill out several columns including their own personal identifier, which is a number.

What I want is basically the Form/Power Automate to check the List before sending a registration entry, whether that specific personal identifier have been already recorded and if so, the Form to display message that only one registration entry per person is possible.

 

Thanks.

Categories:
I have the same question (0)
  • Edd-Keogh Profile Picture
    297 on at

    Hi @t_vale 

     

    You can set the column that they are entering in to on your SharePoint list to enforce unique values. If you click on the drop down on the column in your SharePoint list and then go to edit you can turn on enforce unique values under more options.

     

    EddKeogh_0-1694682070108.png

    This wont let you submit the form and will bring an error up saying duplicate value exists on list.

     

    Hope this helps.

     

    Thanks,

     

    Edd

  • t_vale Profile Picture
    6 on at

    Hi @Edd-Keogh ,

     

    thanks, it works for not creating duplicate entry in the List, but I'm still able to submit the form.

  • Edd-Keogh Profile Picture
    297 on at

    Are you saying it enters all the other information apart from that one part? 

  • t_vale Profile Picture
    6 on at

    The form processes as usual, eg I can submit it and there's a new entry, in this case duplicity, in the form itself.

    Then the Power Automate Flow tries to feed the entry into the List, but it fails as there's already the same entry so in the List, only the original entry stays and no duplicity is recorded.

     

    But I want also let the respondent know that they already registered. Now they won't find because the Form won't tell that identical registration exists.

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @t_vale ,
    You can disable Submit button based on form fields or you can display a message on click of button. Try using below code in display mode property of Submit button - If(IsBlank(LookUp(SPListName, IdentifierColumnName = DatacardValueIdentifierName.Text)), DisplayMode.Edit, DisplayMode.Disabled)

     

    Try using below formula in OnSelect property of a button if you would want to display an message to user - 

    If(IsBlank(LookUp(SPListName, IdentifierColumnName = DatacardValueIdentifierName.Text)), <Call a flow action>,Notify( "Custom message to let users know that an entry with the same identifier is already there in the list", NotificationType.Warning, 4000 ))

     

  • t_vale Profile Picture
    6 on at

    My form is created in Forms, not in Power Apps.

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

Forum hierarchy changes are complete!

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard