How to use Script from arguments in application menu

mdsannavulla
Kilo Guru

Hi All,

How to write script when I select link type is "Script from arguments" in application menus. Please provide any example.

13 REPLIES 13

manikorada
ServiceNow Employee
ServiceNow Employee

https://<<instance_name>>.service-now.com/sys_app_module_list.do?sysparm_query=link_type%3DSCRIPT



Replace instance_name with you instance and you can some examples with that


Actually my requirement is like below



I don't want show one state value records to all group members except one group (say ABC) in "Assigned to my group" module.



But if the logged in user is part of that ABC group then I want to show that state value records.



Is this requirement is possible through "Script from Arguments" or any other way is their to achieve this.


Hi,


You can try creating module by link type -"List of Records". Specify your table, view. And in the Filter conditions you can give filter like - Active- true AND Assignment Group is javascript:getMyGroups().


So it will display only those records to the user of which he/she is part of that assignment group.


this should work.



Thanks,


Ganesh


Even though the user is part of assignment group I don't want to show one particular state value records but I want to show that particular state value records to one particular group in the same module itself if the logged in user is part of that group.