web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Business rule to lock ...
Power Apps
Unanswered

Business rule to lock fields works in form but not in editable grid.

(0) ShareShare
ReportReport
Posted on by 359

Hello. I created a business rule to lock fields when certain criteria is met. It works when in the form:

Mgodby_0-1669088856206.png

 

But not in the editable grid, those same fields are editable and can be changed and are not locked.

Mgodby_1-1669088895745.png


Is there a way to get it so it locks it on the editable grid as well? Thank you.



I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Mgodby ,

     

    vbofengmsft_0-1669097650316.png

    I think this link will help you a lot:

    Use Editable Grid control in Dynamics 365 Customer Engagement (on-premises) | Microsoft Learn

     

    Best Regards,

    Bof

     

  • chrispybites Profile Picture
    15 on at

    This isn't an answer to the question.  Business rules that lock fields do not work on the editable grid.  My condition is a column on the grid.

  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    @chrispybites what's the scope of the Business Rule? It should be entity. All forms/Particular form won't work in this case.

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @Mgodby / @chrispybites ,

     

    If your locking condition is dependent on another column, try adding into the editable grid and check if it locks the main field? [Referring to @v-bofeng-msft 's comment].

     

    Now, if the above doesn't work, this is a limitation that Business Rules only work in context of your Form and Editable Grid doesn't activate the Business Rule.

    To resolve this, there are 2 options

    1. You can create 2 views where Read-Only View contains all the columns and Editable-Grid for only selective columns to change.

    2. If you really want to keep 1 view, try Read-Only and then OnSelect of the records, trigger a JavaScript to open a mini-Form/Main-Form as side panel and edit the changes on the fly and close the Form. This way your records in main page View will remain as it is.

     

    Hope this helps 

  • chrispybites Profile Picture
    15 on at

    @a33ik and @Ethan_R:

     

    The scope of the business rule is on the entity itself, which should cover any form.  And I wouldn't be commenting on this thread if the column that plays in the condition wasn't in the grid.  To be clear, this is in reference to the Power Apps Grid Control.

     

    I'd like to try and accomplish this without customizing the app with code, but if that's the only way to lock a field based on a condition, then I'd call that a problem Microsoft needs to fix.  

  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    @chrispybites thanks for the clarification. If you think that there is an issue I would highly recommend a ticket with Microsoft and request for support.

  • ahdavids Profile Picture
    3 on at

    Agreed with the above. Please share ticket @chrispybites if you create one as I would upvote due to need to implement in our instance as well.

  • Charles Seguin Profile Picture
    401 on at

    @chrispybites @ahdavids 

     

    I think I am experiencing this issue as well. Very simple business rule to lock a field is not being applied to the Editable grid (yes, all the fields are on the grid).

     

    Business rule:

     

    CharlesS_0-1709776555977.png

    CharlesS_1-1709776569000.png

     

    View (no lock applied):

    CharlesS_2-1709776684235.png

     

  • Charles Seguin Profile Picture
    401 on at

    Interestingly, while business rules to lock fields are not applied in editable grid views, they are indeed applied in editable grid subgrids in the context of a form.

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,070

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 608

Last 30 days Overall leaderboard