You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This script will allow you to get Favorites Hierarchy of a specific user.
2
+
This means all nested groups and links.
3
+
4
+
Here is an example call with print out. You can replace gs.getUserID() with a User Name instead:
5
+
6
+
var favorites = getFavoritesHierarchyArray(gs.getUserID());
7
+
gs.info(JSON.stringify(favorites));
8
+
9
+
10
+
This will return an array of objects.
11
+
Each item in the array will have a "type" property which will be "group" for nested groups and "bookmark" for bookmarks/links
12
+
13
+
Other properties are named the same as the standard fields on the "sys_ui_bookmark_group" and "sys_ui_bookmark" tables for Groups and Bookmark types respectively
0 commit comments