Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Business rule not working for editable subgrid

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
    Bipin D365 28,964 Super User 2024 Season 1 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
    protc 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
    Abhilash M abi 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
    protc 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
    meelamri 13,204 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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans