Bypass data policy without disregarding the business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 05:57 AM
Hi All,
I have a UI action which is updating few records based on "if" condition check.
However, because of the data policies on the table, the update was not working every time.
But, I wanted to update the records irrespective of the data policies condition.
So, I used the setUseEngines(false) function.
But, setUseEngines is skipping the business rules as well.
Is anyone aware of a way through which we can make use of setUseEngines(false) but the business rule should also be considered.
Regards,
Nikhil.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 06:12 AM
Hi Nikhil,
It is hard to assist you without seeing the code. If you share the script of your UI action, it will be much more likely that someone can assist you with navigating the logic.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 06:14 AM
Hi Nikhil,
No this is not possible. Data policies enforce data quality and working around them isn't intended. You either need to adjust the data policy trigger conditions, or migrate them to UI policies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 06:24 AM
Besides the code missing which makes it harder to assist: why are you trying to bypass data policies. They are there for a reason. If it's something that can be ignored in certain situations, why not inactivate the data policies and make them UI policies?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark