The CreatorCon Call for Content is officially open! Get started here.

Filter condition for a module with javascript?

regizzle
Kilo Contributor

So, i know its very possible to use a javascript: bit of code within a filter however, I am facing an issue.

I am trying to use:

javascript:gs.getUserID().getRecord().getValue('u_site')

Where u_site is a reference to core_company.

so its: Site is javascript:gs.getUserID().getRecord().getValue('u_site')

However, when i go and actually click the module it returns (empty), yet, when I do a test via business rule returning a gs.addInfoMessage, it returns the sys id properly.


Where am i going wrong?


Thanks,

Roland

1 ACCEPTED SOLUTION

try running a cache.do (during non peak hours or when its a good time for the instance to possibly be down for a few minutes)


View solution in original post

13 REPLIES 13

manikorada
ServiceNow Employee
ServiceNow Employee

Roland,



This might be caching issue. sometimes in the Dev environment you might need to do cache flush to get the results.


try running a cache.do (during non peak hours or when its a good time for the instance to possibly be down for a few minutes)


regizzle
Kilo Contributor

Thanks for the command!



Will it always go down or is that a its gonna be so slow its down type of "go down"?


will not always go down, but may cause degradation of service