- 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 12:15 AM
Have you checked the application picker. Are the applications under Global scope or Application scope?
Thanks
Akhil
Hit Like/helpful/correct, if applicable.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2016 12:16 AM
Hi Rajendra,
According to me, i will create a form link type ui action on global table.
whenever i enter on form or any other module, that ui action will be visible and whenever i will click on that ui action that will show me massage about application name.
by the way you can use "gs.getCurrentScopeName();" to get application name.
Regards,
Harshvardhan

- 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 12:28 AM
Thanks Kalairsan, you saved my day man,