Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Count number of records with same data

(0) ShareShare
ReportReport
Posted on by 685

Hi,

I have a requirement to create a view that only contains records that don't have duplicates in a specific field. 

i.e. a Contract ID field actually has the same ID when the contract is renewed, meaning several records could exist for the same contract ID. I need to create a view that only shows records that do not have duplicate contract IDs.

To do this I would assume I would need to create a rollup field to count this but cannot see how this is possible.

I could obviously do this with SQL via an SSRS report but would like it to be a view instead. Can anyone point me in the right direction?

Thanks,

Richard 

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Count number of records with same data

    Hi crmrsw15 ,

    you have to create a plugin/custom workflow (on create and update Contract ID field events) which counts all records with same ID and updates all these record with the results (record count).

    This way you will filter record with "Record count" = 0.

    Please let me know if you solve.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans