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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Duplicate Check in CDS
Power Apps
Answered

Duplicate Check in CDS

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

While creating a new record in CDS using an entity form, is there any way to show the duplicate entries as the user types in the name, or any other way. 

 

For example, if a user wanted to make a new record and began typing "AB" into the name field, existing record "ABC" would appear and the user would know that "ABC" already exists in the CDS database.

 

Thanks

I have the same question (0)
  • Verified answer
    jaguil3ra Profile Picture
    81 on at

    You used the duplicate detection rules?. You maybe to use a detection rule that allow to check when the name start with the same first characterssample1.jpg

     

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a bit more about your scenario?

    How do you create a new record into your CDS Entity? Using Entity form or PowerApps app form?

     

    If you want to create a new record into your CDS Entity using Entity form, I afraid that there is no way to achieve your needs.

    The Duplicate Dection Rule would take effect when you add a new record or update an existing record within your CDS Entity, it could not take effect when you type text within the Name field. In addition, it could not display the existing record within your CDS Entity.

     

    If you want to create a new record using PowerApps app form, I think PowerApps app form could achieve your needs.

    On your side, you could consider generate an app based on your CDS Entity, then go to the Edit form. Within the Edit form, unlock the Name Data card, and within the Name Data card, add a Data Table control as below:1.JPG

    Set the Items property of the Data Table to following:

    Filter([@TaskLists], StartsWith(TaskName, DataCardValue6.Text))

    On your side, you may type:

    Filter('YourCDSEntity', StartsWith(NameField, NameFieldTextInputBox.Text))

    Set the Visible property of the Data Table to following:

    If(
     IsBlank(NameFieldTextInputBox.Text) || IsBlank(LookUp('YourCDSEntity', StartsWith(NameField, NameFieldTextInputBox.Text))),
    false,
    true )

    Note: If the NmaeFieldTextInputBox is Blank or there is no existing record whose name starts with NmaeFieldTextInput text value, the Data Table would be hidden.

     

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

  • Inpriya01 Profile Picture
    13 on at

    Hello 

    thanks for your reply, just wanted to know how did you navigate to this screenshot which you mentioned in your reply?

    dup chk.PNG

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @jaguil3ra 

  • Verified answer
    jaguil3ra Profile Picture
    81 on at

    Hello @Inpriya01,

    Follow this route: Advanced Setting > Data Management > Duplicate detection rules temp1.png:

    temp2.jpg

     

    temp3.jpg

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @jaguil3ra @v-xida-msft 

     

    I am trying to set the duplication detection rule but I am not able to see the specific entity on which I want to set the rule.

    Could you please help me in understanding a possible cause of not able to see the entity.

     

    Thanks,

    Amit

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard