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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Deduplication rules for parent/child accounts

(0) ShareShare
ReportReport
Posted on by 30

I have a business requirement to dissallow creation of duplicate accounts with the same VAT number, unless new submitted account form has a parent account id which has the same VAT Number. 

Is this achievable with OOB functionality of deduplication rules (I guess not)?

What would be the most elegant way to deal with issue:

1. Custom realtime workflow performing the checkup and throwing error when record is created?

2. On field change javascript controlling the duplicate Vat number?

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    You can create calculated field to store the Parent Account VAT number. Then you can use OOB deduplication rule to achieve your requirement.

    In case you don't want to store Parent VAT -

    You should not opt for second option as it only runs client side and it will not work when you import records/record created from integration using c# OR Web api.

    You can write plugin code to achieve your requirement/Real Time Workflow with Custom workflow activity code.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • matnikr2021 Profile Picture
    30 on at

    I initially liked the idea of calculates fields, but here is a problem:

    If VAT Number is a text type of length 10, when I set up a text calculated field, regardless of my intention it gets 4000, and a maximum length for OoB deduplication rules is 700.

    Any ideas how to move forward?

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 196 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans