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

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans