Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Set field visibility according to company.

(0) ShareShare
ReportReport
Posted on by 5

I need to set a specific field's visibility according to company in Dynamics 365. Let's say I have two legal entities (companies), cmpA and cmpB. And I need to show FieldA from TableA on my form when I select cmpA on browser. But when I select cmpB, the field should not appear on the form.

How do I achieve this? Should I use a method (if yes, then how do I write the required method) for it or is there any other procedure? And should I do it on table level or form level? 

  • Suggested answer
    omesh Profile Picture
    omesh 141 on at
    RE: Set field visibility according to company.

    Hi Young,

    Have you tried using 'CountryRegionCodes' field property on table level. If you set it for particular company then the field will be visible for the selected company.

    Please check the link -  Apply country/region context - Finance & Operations | Dynamics 365 | Microsoft Learn

    Thanks,

    Umesh

  • Suggested answer
    XM-22040801-0 Profile Picture
    XM-22040801-0 11 on at
    RE: Set field visibility according to company.

    Hi,

    If you are not developer, the easiest way is to create a business rules: learn.microsoft.com/.../create-business-rules-recommendations-apply-logic-form and community.dynamics.com/.../using-business-rules-to-hide-fields-and-make-them-required-as-needed

    Alternatively, you can do it using javascript: community.dynamics.com/.../hide-and-show-a-field-in-dynamics-365-crm-using-javascript

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,419 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,492 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans