Display Modules based on Criteria

eswarijk
Tera Contributor

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..?

11 REPLIES 11

Yes...But it varies based on instance and tables..


At that time , how do I identify the unique module which I wants.


Sys id's will never change in the instance unless you create manually without moving update set to tes or prod instance


Regards
Harish

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



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


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