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 :
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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans