Skip to main content

Notifications

Microsoft Dynamics CRM forum
Unanswered

Can't create contact because Business Rule is applying to Quick View Form on Main Form

Posted on by 279

I have a business rule with All Forms scope that displays an error if Mobile Phone and Primary Email are empty and requires both until at least one is filled.

One of my forms has neither of those fields on it EXCEPT in a quick view form related to a lookup field in that form. When I try to create a contact on this form the error messages display at the top of the page just below the ribbon and I'm not able to save my contact. This is despite the lookup field being empty so the quick view form is hidden.

I've tested this on other forms without those fields or quick view forms and they work. I've also tested my rule with the scope set to one form and my saving issue stops, so the only thing I can think of is the business rule thinks those two required fields are on my form because of the quick view form.

Any thoughts on why the rule is applying to a quick view form? I thought it was only main and quick create forms.

  • RE: Can't create contact because Business Rule is applying to Quick View Form on Main Form

    Hi Lucas, that is most likely the case! Glad that you were able to solve your issue :)

  • Lucas H Profile Picture
    Lucas H 279 on at
    RE: Can't create contact because Business Rule is applying to Quick View Form on Main Form

    I'm not sure what happened but somehow it started working correctly... maybe something else was conflicting and causing it to not perform as expected? Anyways, thanks for your help!

  • RE: Can't create contact because Business Rule is applying to Quick View Form on Main Form

    Hi Lucas, I replicated your scenario I think, I might have a different business rule, but mine should prevent saving. I tested by using only "Home Phone" as a field checked by a business rule, that makes the field itself mandatory if it's filled, and throws an error if it's empty. And I added a quick view form:

    pastedimage1620705061530v1.png

    In this scenario I can save without any issues (after I fill up the home number with something). By any chance can you replicate the behavior with another entity?

    Can you provide more details of the error, or maybe a screenshot of the error itself?

    Best regards,

    Mauro De Biasio

  • Lucas H Profile Picture
    Lucas H 279 on at
    RE: Can't create contact because Business Rule is applying to Quick View Form on Main Form

    Hey Mauro, thanks for the response!

    - Yes, it's being created on contact forms. I've tried it on multiple different forms, too, and only the one with the Quick View form had the issue.

    -The lookup field points to the Contacts table.

    - Yes, the only rule related to the primary email and mobile phone field is the one that requires them if either is empty. There's also some JS that formats the phone number.

  • RE: Can't create contact because Business Rule is applying to Quick View Form on Main Form

    Hi Lucas, can you please give me some clarifications:

    - You are trying to create a Contact, are the business rules created on the Contact forms?

    - What Entity, the lookup that populates the quick view, points to?

    - Are you sure you don't have any other mechanism to populate mobile phone and primary email? (for example another JavaScript, or a second rule present on that particular form)

    Best Regards,

    Mauro De Biasio

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans