cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User II
Super User II

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
Super User II
Super User II

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Users online (9,444)