If user dosn't have requests menu should not appear
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 11:32 PM
Hi
Kindly help me If user dosn't have requests menu should not appear , please help me on this condition or code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 11:48 PM
Hi @Sweta24
These tab come from menu items (sp_rectangle_menu_item)
There will be option to script the condition if you open the record.
You can write a script include and call it from the condition option.
please mark this answer as helpful and correct if helped.
Kind Regards,
Ravi Chandra.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2024 12:59 AM
Kindly provide the script include code and condition , i have requested question for the code only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2024 01:53 AM
Something like this:
var grIncident = new GlideRecord('table'); //give table name
grIncident.addQuery('requested_for', gs.getUserId()). // Or any associated field
grIncident.query():
if(grIncident.hasNext())
return true;
please mark this answer as helpful and correct if helped.
Kind Regards,
Ravi Chandra.