Issue with Query Business Rule on Task Table Impacting Catalog Tasks and Approvals
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 03:29 AM - edited 06-04-2025 03:30 AM
Hi Team ,
I’ve implemented a query business rule on the Task table (parent table) to restrict data visibility based on user group membership.
Scenario:
We have a specific user group that should have visibility into all task records. For users not in this group, records associated with that security group should be hidden.
Issue:
After applying this business rule:
The "Create Catalog Task" step in Flow Designer fails to execute.
Approvals are also failing with the following error:
Record being approved (sc_req_item:) does not exist or is unreadable.
It seems the query business rule is interfering with record visibility in a way that prevents these actions from functioning correctly.
Can someone please assist with adjusting the business rule logic or suggest an alternative approach to meet the requirement without impacting catalog task creation and approvals?
business Rule :
condition : !gs.getUser().isMemberOf('security')&&gs.getSession().isInteractive();
script :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 04:22 AM
Hi @manojkin
- Use setWorkflow(false) in the Flow script to disable the business rule temporarily before updating the status.
Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me..
- Keep Learning
Thanks & Regards
Deepak Sharma