Hi dear reader,
Thanks for reading my challenge.
We’re discussing a CRM 2016 on premise installation.
To keep things simple, I’m using an simplified example.
My entity has two custom fields: A and B. Both fields are of the data type “Two options”. Both included in the main form.
There is a plugin running along saying: if A is checked OnSave, the record cannot be changed afterwards anymore. I can not disable this plugin.
I would like to create a Business Rule that says: as soon as A is checked, B should be checked also! I want the scope to be Entity because I want it to run without using a form of any kind.
And, so I did (wasn’t too complicated).
Now, when I use advanced find to list the records of this entity, I select a few and use bulk update to have field A checked. In the database I see that the Business Rule hasn’t done anything, which I could understand due to the plugin. So, A=1 and B=0.
But! When I open the form of one of the changed records, both A and B are checked. Obviously B is checked OnLoad (I see the 'unsafed data' notification on the bottom right), but still: how is that possible if there’s a padlock on áll fields (because of the plugin)?
I still get the feeling that the Business Rule can overrule the read-only state of the fields, but not all behaviour substantiates that.
Am I fighting windmills here? Is this only to be done using another plugin (or changing the running one)? Any other ideas?
(obviously, an asynchronous workflow that checks B when A is checked, fails because the field cannot be changed anymore)
Again, thanks for reading and thinking along with me!
Best regards,
Jeroen