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 Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (1,874)