How to set dynamic filters in data visualizations in dashboard (Performance Analytics)

Anson Mathew
Tera Contributor

AnsonMathew_0-1762347218316.png

I am trying to fetch records whose branch/department is currently logged in user's branch/department.However the filter seems to be working in native only in list view, not in dashboards.

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Anson Mathew 

did you try adding this?

SysId [IS ONE OF] javascript: getMyRecords()

-> create classless script include which is client callable with that name and return string of comma separated sysIds

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader