How to remove bookmark?
How to remove favorite?
Sometimes we need to edit a module but it’s not enough when another thing could enable access to user, ACL for example, however itt could be need to take off/remove these bookmarks, when how could we do it?
its not so easy than just edit module, but it’s the first step
Image Description
01. Search by module that need to update
02. Click on the edit
03. on the Visibility tab
04. Click Edit
05. Edit roles availble as need
06.click Done
07. Click update
Creating a script to remove favorites
Image Description
01.Navigate to >> System Definition > Fix Scripts
02. Click New
03. type a name of fix script
04.Type a name for Description
05.Type the script
06.Click Update
07. Run Fix Script
var grBook = new GlideRecord(‘sys_ui_bookmark’);
grBook.addEncodedQuery(‘urlSTARTSWITHu_ppm_templates_list.do’);
grBook.query();
while (grBook.next()) {
var myUser = gs.getUser().getUserByID(grBook.user);
if (!myUser.hasRole(‘ppm_pmo_acp’) && !myUser.hasRole(‘ppm_project_manager’)) {
grBook.deleteRecord();
}
}