- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2016 11:57 PM
Hi,
I have two applications ,in that application i have two modules with same name and corresponding to same table.
here when i click the module i want to know from which application menu i have clicked.
i have hrcase and itdesk applications,
in that i have two modules with same name as newcall.
if i click newcall from itdesk application ,i wnat to get the application name.
can any one help me on this , i got strucked here from past couple of hours.
Thanks,
Rajendra Prasad Darshanam
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2016 12:18 AM
Try this in a on load script. This script will give the sys id of the module being used.
var gURL = new GlideURL();
gURL.setFromCurrent();
var moduleSYSID = gURL.getParam("sysparm_userpref_module");
alert(moduleSYSID);
Now you can differentiate the application using the module being accessed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2016 01:18 AM
Do you have any docs for this class GlideURL and its methods?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2016 01:18 AM
Nope