Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

based on logged user company query the records or display the incidents

busireddy
Tera Contributor

I have requirement , if logged in user company is "IBM" and on incident from we have comapny field , if compey field has mapped to "ibm" only those incident user has to access via query business rule.

7 REPLIES 7

Sukhbir Singh2
Giga Guru

I dont understand the requirement clearly but are you saying, if logged in user is IBM then they should have access to only those incidents which have a company field mapped to "IBM"?

Then create a Query BR on incident table and use the condition and code as shown in second screenshot.

find_real_file.png

 

 

 

find_real_file.png

 

 

Please mark my answer as correct/helpful, if it helps.

Thanks

 

 

Hi

Did you get a chance to review my response?

Please mark my answer as correct/helpful if it helped.

Thanks

Hi

Did you get a chance to review my response?

Please mark my answer as correct/helpful if it helped.

Thanks

Hi I have checked the script is relevant to my requirement.