How to use Script from arguments in application menu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2015 09:59 AM
Hi All,
How to write script when I select link type is "Script from arguments" in application menus. Please provide any example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2015 11:08 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2015 10:29 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2015 10:49 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2015 11:00 PM
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.