- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2016 01:54 AM
We have default favorite icons in the system for mobile. When we are using $m.do then all favorites are showing in the home page but when we are using Mobile App, those are not showing, in app only those items are showing which are marked as "Favorite" from the desktop view.
Is there way to fix this issue so that all favorite items from system should also visible in mobile app also.
And if in case its not possible we need to set some default favorite icons in the app, so if this will not work then this becomes challenge for us to set default favorite to all users. We want some automate so that we can set some favorite icons as default for all users.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 04:12 AM
Thank you for marking it helpful. If it is answered, can you mark it correct? Refer to this video around 20:15 mark to see how.
Ask the Expert: Community Etiquette, TechNow Ep 27

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 02:54 AM
Let me know if you need help with the script to create those records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 03:07 AM
Yes that will also help me if you provide the script so that I can try to my one instance,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 03:55 AM
Here you go. Run this from scripts background.
// get a list of all active users who have already logged in
var u = new GlideRecord('sys_user');
u.addActiveQuery();
u.addNotNullQuery('last_login_time');
u.query();
while (u.next()) {
// Create a bookmark for this user
var b = new GlideRecord('sys_ui_bookmark');
b.newRecord();
b.icon = 'list'; // Choose appropriate icon
b.color = 'yellow'; // Choose your favorite color
b.auto_add = true;
b.user = u.getValue('sys_id');
b.title = 'My incidents';
b.url = 'YOUR URL HERE'; // Use your appropriate URL
b.insert();
gs.log('Bookmark created for: ' + u.getDisplayValue());
}
If you want to run a sample of the first 5 users, add this line between lines 4 and 5
u.setLimit(5);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 04:03 AM
Now have I answered your question. (I'm eager to see the icon on this discussion turn green.)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2016 04:12 AM
Thank you for marking it helpful. If it is answered, can you mark it correct? Refer to this video around 20:15 mark to see how.
Ask the Expert: Community Etiquette, TechNow Ep 27