Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Business rule not working for editable subgrid

(0) ShareShare
ReportReport
Posted on by 595

Hi, I'm using business rule to lock and unlock subgrid field, if field contains data then unlock field else lock field... but it is not working now? what might be the issue..... please suggest me... 

  • Verified answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: Business rule not working for editable subgrid

    Hi,

    Please see below blog which has js code to achieve your requirement.

    xrmdynamicscrm.wordpress.com/.../

    Pass the list of fields to be disabled in array object and attach the code on onrecordselect event.

    If found helpful, Please mark my answer verified.

  • Suggested answer
    protc Profile Picture
    on at
    RE: Business rule not working for editable subgrid

    Hi Abhilash,

    In this case you can use the JS code to manipulate the fields as required,

    stackoverflow.com/.../disable-column-in-dynamics-crm-editable-subgrid-based-on-a-condition

  • Abhilash M abi Profile Picture
    595 on at
    RE: Business rule not working for editable subgrid

    i make scope as entity only but it is not working for editable grid... in form level it is working fine...

  • Suggested answer
    protc Profile Picture
    on at
    RE: Business rule not working for editable subgrid

    Hi Abhilash,

    Thank you for your query.

    There are three options possible for the scope of a business rule;

    Single Form Scope – Use this when a business rule specifically applies to a single form. It involves selecting a specific form name.

    All Forms – Use this to apply the business rule to all forms. (Including main and quick create forms.)

    Entity – Use this to run the business rule at a form and server level. (Server level being triggered by a create or update of data.) Useful if the rule is to be applied not only on forms but when data is imported. Also useful if the business rule is to be applied to editable grids.

    pastedimage1593688084408v1.png

    Please make sure the Scope of the Rule is set to Entity.

    pastedimage1593688098577v2.png

  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at
    RE: Business rule not working for editable subgrid

    Hi, 

    You need to use some JS code for this scenario.  Please check this thread: 

    https://stackoverflow.com/questions/57687304/disable-column-in-dynamics-crm-editable-subgrid-based-on-a-condition

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 57

#3
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 53 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans