script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
Do we have any background script to run to remove inactive catalog items which are added to favorites in employee center for all users in ServiceNow.
or do we have any alternative way to execute this the above task.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @NIRANJANAH
May this solution help you
https://www.servicenow.com/community/employee-center-forum/hiding-catalog-items-in-employee-center/m...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
In servicenow, a user “favorites” a catalog item in the ESC portal, those are stored in:
sp_favorite table.
Delete entries from there.
Run a background script on this table, if Reference Document is that inactive catalog delete the record from table.
Hope it works!
If you find any difficulty writing background script you can ask me!
Shashank Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@NIRANJANAH , If the above solution helps, please mark the solution as accepted and close the thread.
Shashank Jain