Need Help with Script

SandeepKSingh
Kilo Sage

Hi All

 

My requirement is if logged in user has ITIL admin role then inactive incident will be shown otherwise it will be hidden.

1 ACCEPTED SOLUTION

Ravi Gaurav
Giga Sage
Giga Sage

Hi @SandeepKSingh 


I guess you can go with both ACL and Query BR .. By checking the condition as :-

Query :-Condition ==>

 

RaviGaurav_0-1724920840071.png

Script :--->

RaviGaurav_1-1724920873760.png

 

Using ACL
Write Table.None ACL on incident table to allow only ITIL admin to see inactive incident as below :

 

RaviGaurav_2-1724920977393.png

 

Hi @Mark Roethof  you can suggest which one is suited ?

 

 

 

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

View solution in original post

3 REPLIES 3

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Please share what you tried already and where you are stuck.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

I am confused what to try query BR or ACL .

Ravi Gaurav
Giga Sage
Giga Sage

Hi @SandeepKSingh 


I guess you can go with both ACL and Query BR .. By checking the condition as :-

Query :-Condition ==>

 

RaviGaurav_0-1724920840071.png

Script :--->

RaviGaurav_1-1724920873760.png

 

Using ACL
Write Table.None ACL on incident table to allow only ITIL admin to see inactive incident as below :

 

RaviGaurav_2-1724920977393.png

 

Hi @Mark Roethof  you can suggest which one is suited ?

 

 

 

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/