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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 283

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.

I have the same question (0)
  • Mauro De Biasio Profile Picture
    Microsoft Employee on at

    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

  • Lucas H Profile Picture
    283 on at

    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.

  • Mauro De Biasio Profile Picture
    Microsoft Employee on at

    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
    283 on at

    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!

  • Mauro De Biasio Profile Picture
    Microsoft Employee on at

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 119 Super User 2026 Season 2

#2
Syed Aqib Raza Profile Picture

Syed Aqib Raza 72

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 66 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans