Before 'Query' Business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 08:53 AM
Hello,
I have created a below 'Before-Query' business rule on Task table to restrict visible access to users with custom role where users with custom role will see only records that are assigned to one of their groups.
But, I want to have an encoded query for incident table like if "assignment group is one of my groups" and if "caller_id is me". How can I compensate the new encoded query in the same business that should work for incident table only since caller_id field is only on incident table.
Any help is appreciated.
Thanks,
Rocky.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2022 05:10 AM - edited 12-17-2022 06:01 AM
Hi @Ben42 ,
Here is the solution:
Add your query in line 9
Check Article:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0719142
Regards,
Reshma
**Please mark my answer correct or helpful based on the impact**