cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Suchism
Microsoft
Microsoft

Locked field using business rules is getting updated through API update

I have set a business rule to lock a field using certain attribute condition. The rule is set at Entity level.

Which is working fine on the UI/form . But I am able to update it through api. Is this expected ? 

1 ACCEPTED SOLUTION

Accepted Solutions
EricRegnier
Super User
Super User

Hi @Suchism, yes this is by design. Lock/unlock action is only for form or subgrid (i.e. editable subgrid) and will not take affect even if scope is set to entity.

Cheers

View solution in original post

2 REPLIES 2
EricRegnier
Super User
Super User

Hi @Suchism, yes this is by design. Lock/unlock action is only for form or subgrid (i.e. editable subgrid) and will not take affect even if scope is set to entity.

Cheers

To add to the previous answer, if you want to prevent changes to the field via the API, your options are:

  1. Write a plugin to handle the logic, and throw an exception to prevent the change
  2. Create a synchronous workflow to handle the logic, and cancel the process to prevent the change
  3. Use field-level security. However, you can't attach conditional logic to this

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,262)