Skip to content

Commit 75601c9

Browse files
authored
Create README.md
1 parent a198345 commit 75601c9

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

  • Server-Side Components/Background Scripts/Get User's Favorite Hierarchy
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
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

Comments
 (0)