Query, insert, update and delete the available bookmarks in Box.
Table Specific Information
If you search for bookmarks without specifying any condition in the WHERE Clause, by default only the bookmarks that are at most 5 levels deep from the root folder will be returned. You can change the default depth value in the connection string; e.g. DirectoryRetrievalDepth=10.
SELECT * FROM Bookmarks
Retrieve a bookmark by specifying the Id:
SELECT * FROM Bookmarks WHERE Id = '8397822180'
To search all the bookmarks in your enterprise, query the bookmarks table with the column SearchTerms.
SELECT * FROM Bookmarks WHERE SearchTerms LIKE '%CData%' AND OwnerUserIds = '311997108,1'
To search all the bookmarks within a specific folder, query the bookmarks table with the ParentId column.
SELECT * FROM Bookmarks WHERE ParentId = 62297447480
To insert a bookmark you must specify at least the URL and ParentId column.
INSERT INTO Bookmarks (Url,Name,Description,ParentId) VALUES ('https://www.cdata.com/','CData','Visit CData!',0)
Any column where ReadOnly=False can be updated.
UPDATE Bookmarks SET Name = 'CData Updated Bookmark', ParentId = 62297447480 WHERE Id = 8397822180
Bookmarks can be deleted by providing an Id and issuing a DELETE statement. This bookmark is then moved to TrashedItems.
DELETE FROM Bookmarks WHERE Id = 8397822180
The Id of the bookmark.
The URL of the bookmark.
The name of the bookmark.
The description of the bookmark.
The Id of the folder that contains the bookmark.
The date the content of the bookmark was created at.
The Id of the user that created the bookmark.
The Name of the user that created the bookmark.
The Login of the user that created the bookmark.
The date the content of the bookmark was modified at.
The Id of the user that last modified the bookmark.
The Name of the user that last modified the bookmark.
The Login of the user that last modified the bookmark.
The Id of the user that owns the bookmark.
The Name of the user that owns the bookmark.
The Login of the user that owns the bookmark.
The Etag of the bookmark
The sequence Id of the bookmark.
The shared url of the bookmark.
The status of the bookmark.
The full path of the bookmark.
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Query to search the bookmarks database.
The scope of the search.
The allowed values are user_content, enterprise_content.
The Ids of the owners to limit the search to, separated by a comma.
The Ids of the folders to limit the search to, separated by a comma.
The Id of the user you want to impersonate. Only works with Admin, Co-Admin and Service Accounts.