Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Clearing out 'Contact' lookup on Opportunity automatically clears out the 'Customer' lookup

(0) ShareShare
ReportReport
Posted on by 3,497

Hi All, 

Noticed a very strange behavior today. 

On the Opportunity form, I have the OOB fields - Account (parentaccountid) , Contact (parentcontactid) and Potential Customer (customerid). The customerid field is hidden on the form and is mapped the value of the Account field, when the Account field changes values.

When I clear out the Contact field and then save the record, I see that the Potential Customer field (customerid) is getting cleared out as well. 

There are no custom form scripts / business rules / workflows / plugins which is causing this behaviour. 

To confirm this, I spun up a new trial instance with absolutely no customization and did the same there. 
Please note that Potential Customer is not placed on the form by default. Since it is a system required field, once placed on the form, it cannot be removed. So use Advanced Find to check the field values.

  1. Create an opportunity with Account and Contact.
    The Potential Customer is the same as Account.
  2. Clear out 'Contact' lookup value and save the record. 
    The Potential Customer becomes blank now.

Help needed:

  1. Is anyone else able to replicate this? Is this a bug?
  2. Why this behavior? I am unable to capture the 'Potential Customer' blanking out through JavaScript, which means I need a workflow/plugin to keep the Account and Potential Customer fields in sync.

Working with Dynamics version 9.0.2.1087
Dynamics 365 Sales Application version 9.0.4.791

Thanks in advance

*This post is locked for comments

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Clearing out 'Contact' lookup on Opportunity automatically clears out the 'Customer' lookup

    Hi Shidin,

    Yes, I am able to replicate this issue and it (clearing the customer on clearing of blank even though account is populated) seems like a bug. I know the behavior of auto populating the customer field is there since very long. CRM has internal logic which checks if account is populated if yes then populated the account to customer if account is blank then it checks for contact, and then populates the customer with contact.

    Because it looks like a bug, you should first contact Microsoft so that they can accept it as a bug and then fix it in the subsequent release. And in the meantime, add additional logic using workflow to populate customer from account. This can work even after the bug is fixed so it won't hurt anything.

    Hope this help.

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,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans