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

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Duplicate Check in CDS

(0) ShareShare
ReportReport
Posted on by

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
    Re: Duplicate Check in CDS

    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
    on at
    Re: Duplicate Check in CDS

    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
    Re: Duplicate Check in CDS

    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
    on at
    Re: Duplicate Check in CDS

    @jaguil3ra 

  • Verified answer
    jaguil3ra Profile Picture
    81 on at
    Re: Duplicate Check in CDS

    Hello @Inpriya01,

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

    temp2.jpg

     

    temp3.jpg

  • Community Power Platform Member Profile Picture
    on at
    Re: Duplicate Check in CDS

    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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 803 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 314 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 253 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics