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 / enforce unique off of ...
Power Apps
Unanswered

enforce unique off of 2 columns in Dataverse

(0) ShareShare
ReportReport
Posted on by 1,164

Hi,

 

How can I enforce unique in the table itself off of 2 columns?

 

Thanks

 

Todd

I have the same question (0)
  • ShrutiDhiman Profile Picture
    39 on at

    Hi @Tango 

    When you create a new column in table there is option to enforce unique value .e44335d2-e392-41cd-b163-1212d1334b75.png

    I hope this helps you !

  • Tango Profile Picture
    1,164 on at

    @ShrutiDhiman Thanks but im in Dataverse not Sharepoint. I also need the uniqeness to be based on 2 columns in the table not 1

  • ShrutiDhiman Profile Picture
    39 on at

    Yes @Tango 

    With the Dataverse you can setup "duplicate detection rules" but this will not stop the insert of the record, it will only provide a warning that you are creating a duplicate.  You would need to implement a plugin that would execute on pre-validation (Synchronous) and return exception.

  • Tango Profile Picture
    1,164 on at

    @ShrutiDhiman Thanks. So much for low code

  • Fubar Profile Picture
    8,346 Super User 2025 Season 2 on at

    Create an Alternate Key  https://learn.microsoft.com/en-us/power-apps/maker/data-platform/define-alternate-keys-reference-records

     

    If you just want a 'soft' check (user can still save if duplicate, but warns them), then you could try Duplicate Detection rule if Model Drvien App.

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard