Hide record producer from ESC search but still able to be submitted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2025 05:25 AM
Hi all, I hope this is the right forum for this. I'm running into an issue where I'm trying to make a particular record producer not searchable on the ESC but still usable via a direct link. I've seen posts mentioning removing it from Catalogs / Categories, but there is nothing assigned to this item. I also tried the "Hide on Service Portal" option in the Portal Settings section; this does hide it, but the direct link no longer works for it. I'm not quite sure what's going on, but also I'm unsure if hiding a record producer is handled different from a catalog item. Either way, I would appreciate some help here.
Thanks,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2025 05:29 AM
then from where will the users submit?
If someone uses direct link then you can use onSubmit catalog client script and stop the form submission and inform that you are not allowed to submit
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2025 05:34 AM
@Ankur Bawiskar Thanks for your quick response. My apologies for not fully clarifying the reason. The ask is to have the item only accessible via a direct URL that we provide on emails that are sent out when a REQ is closed for a user to report if it wasn't completed successfully. So, not looking to make the user unable to submit, just only make it so the record producer doesn't show up to randomly submit via the portal search. We very recently migrated from Remedyforce, where there was an option to make an item be online/available and a separate item to make it searchable.
Thanks,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2025 05:44 AM
Record producer can be hidden on portal using User Criteria so it won't show in Search result.
Now if you want user to submit only via link sent from email then I can think of only this solution now
1) don't use any user criteria etc
2) the email notification which you using to include link, include an extra URL parameter value
/esc?id=sc_cat_item&sys_id=catItemSysId&sysparm_email=true
3) then use onLoad client script and check if URL contains that parameter
a) if yes then user is good to submit
b) if no then inform user that you are not allowed to submit and redirect them to home page of portal
function onLoad() {
var url = top.location.href;
if (url.indexOf('sysparm_email=true') == -1) {
top.location.href = '/esc';
}
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2025 10:17 AM
@Ankur Bawiskar Thank you for this! I will check this.