Before 'Query' Business rule

Ben42
Tera Contributor

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.

 

Ben42_0-1671209439325.png

 

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.

 

5 REPLIES 5

reshmapatil
Tera Guru

Hi @Ben42 ,

 

Here is the solution:

reshmapatil_2-1671285670665.png

 

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**