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 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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,265)