web
You’re offline. This is a read only version of the page.
close
Skip to main content
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... 

I have the same question (0)
  • 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
DAnny3211 Profile Picture

DAnny3211 359

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 77 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans