Display Modules based on Criteria
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2017 09:33 PM
I need to display modules based on Specific criteria such as if a username is present in certain table.
I saw the possibility of displaying modules based on roles.
Is it possible to display modules based on some conditions..?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 01:22 AM
Yes...But it varies based on instance and tables..
At that time , how do I identify the unique module which I wants.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 01:31 AM
Sys id's will never change in the instance unless you create manually without moving update set to tes or prod instance
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 01:23 AM
Hi Eswari,
Please navigate System Definition--> Modules--> Search your module and find the sys_id by right clicking on the header as Harishkumar shown above.
I hope this helps.Please mark correct/helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 01:34 AM
Yes...I can understand that ....By my requirement is different..How do I find the sys_id using GlideRecord.
What is the criteria for addQuery to find the sys_id..
Because it will moved across instances using update sets
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 01:47 AM
Hi Eswari,
Sys_id will remain unique even if you move any updates against the instances. All you have to GlideRecord in the sys_app_module table and do object.addQuery('object.sys_id', 'pass_your_static_sys_id');
If you already found out the sys_id(s) of the modules then you can simply use the Business rule which I have mentioned in my earlier response. You can also use current.addEncodedQuery() in that Business rule.
I hope this helps.Please mark correct/helpful based on impact