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,...
Answered

Cannot find Unit field on business rule selector

(0) ShareShare
ReportReport
Posted on by 416

Hello everyone! 

On the form of the Price List Item entity, I want to create a business rule to show/hide a field based one the Unit lookup:

pastedimage1633412527122v1.png

However, (along with other fields) the Unit field is not listed within the field selector on the Business Rule:

pastedimage1633412598283v2.png

Is there a reason to this or perhaps something that I am not doing? Can I surface the unit field?

Looking forward to your ideas! 

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi fran2105,

    This is by design and there is no way to make it show in the business rule.

    As a workaround, you could create a event on the Product List Item form with the following code:

    function formOnChange(executionContext){
    	var formContext = executionContext.getFormContext();
    	var unitName = formContext.getAttribute("uomid").getValue()[0].name;
        if(unitName != null && unitName == "yourvalue"){
            formContext.getControl("yourfieldname").setVisible(false);
        }else{
            formContext.getControl("yourfieldname").setVisible(true);
        }
    }

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 60 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 43

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans