Add Bookmark for all users

var bookmark = new GlideRecord('sys_ui_bookmark');

bookmark.newRecord();

bookmark.icon = 'list'; // Opt for an icon that resonates with you

bookmark.color = 'yellow'; // Choose your preferred color

bookmark.auto_add = true;

bookmark.user = u.getValue('sys_id');

bookmark.title = 'My Group Work';

bookmark.url = '/task_list.do?&sysparm_query=assignment_group=javascript:getMyGroups()^active=true';

bookmark.insert();

gs.log('Bookmark successfully created for: ' + u.getDisplayValue());


要查看或添加评论,请登录

Anshul Agarwal ???的更多文章

  • Understanding Custom Workspace ??

    Understanding Custom Workspace ??

    Creating a custom workspace in ServiceNow involves several steps, utilizing the Next Experience UI Builder and other…

  • Service Operations Workspace

    Service Operations Workspace

    ServiceNow's Service Operation workspace is designed to provide IT service management (ITSM) teams with a centralized…

    3 条评论
  • ??Leveraging AI for Enhanced ServiceNow Performance: A Game-Changer in IT Service Management??

    ??Leveraging AI for Enhanced ServiceNow Performance: A Game-Changer in IT Service Management??

    Harnessing AI for IT Service Management: ServiceNow serves as the backbone for IT service delivery in countless…

  • New to ServiceNow?

    New to ServiceNow?

    ??New to ServiceNow? No Worries – Dive into This Learning Guide ?? Learning ServiceNow can be a rewarding journey…

  • Revolutionizing Business Operations with ServiceNow

    Revolutionizing Business Operations with ServiceNow

    ?? Embracing Innovation for Seamless Workflows ?? In the fast-paced world of business, efficiency is key. That's where…

  • How to find unique values in a table? ?

    How to find unique values in a table? ?

    function getUniqueValues(table, groupingAttribute, encodedQuery) { var uniqueValues = []; var ga = new…

  • How to find Duplicate records in a table?

    How to find Duplicate records in a table?

    var dupRecords = []; var gaDupCheck1 = new GlideAggregate('sys_user'); gaDupCheck1.addAggregate('COUNT', 'email');…

社区洞察

其他会员也浏览了