how can I remove the bookmarks for all users

harivas
Tera Contributor

For users have in their profile they have auto added book marks are there when I make it un check pinned and auto added fields on those book marks still they have book marks, when I deleting in perticular users of bookmark record in bookmark table then only its removing profile,
1.how can I remove the existing book marks for all users 
2.how can I add the some bookmarks for who are having resource roles

can any one help me on this query,

thanks & Regards
Harivas

1 ACCEPTED SOLUTION
9 REPLIES 9

Hello @Community Alums

 
Thanks for your response,

with out delete the book mark records we can't remove the favorites?

Community Alums
Not applicable

Hi @harivas ,

I checked if "unpinning" helps , but it's of no use, the favorite still sustains, so Deleting is the right approach :

SandeepDutta_0-1709126950197.png

 

Thankyou @Community Alums 
How can add favorites for perticular users and we have a resource role table on that we have some roles, user who are have those roles I want to add the favorites to those users how can I do that I just glided that table where can I configure for this.

 

var grrole = new GlideRecord('resource_role');
grrole.query();

var roles = [];
while (grrole.next()) {
roles.push(grrole.role);
}

Thankyou!!!



Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

While some half good answers have been given... they all mis a part of the bookmarks: the bookmark groups!

Only deleting the bookmarks, will leave you with empty bookmark groups. So do look at sys_ui_bookmark + sys_ui_bookmark_group

 

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn