Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
QSM
Partner - Contributor II
Partner - Contributor II

Issues trying to download a list of bookmarks from an app

Hi,

 

I am simply trying to get the list of all the bookmarks that exists within an app.

Since after searching it doesn't seem to exist natively, I looked into API calls to achieve this.

So I connected to the engine, selected my app and used the "GetBookmarks" method, but the response was ""// response too big to display"". 

Then, using GPT to assist, I learned that I should create a session object and then use the "GetLayout" method on it, so I used this piece of code : 

 

{
	"handle": 1,
	"method": "CreateSessionObject",
	"params": {
		"qProp": {
			"qInfo": {
				"qType": "bookmark-list"
			},
			"qBookmarkListDef": {
				"qType": "bookmark",
				"qData": {
					"title": "/qMetaDef/title"
				},
				"qLimit": 1
			}
		}
	},
	"outKey": -1,
	"id": 17
}

 

But when using the GetLayout method on this object, it also say "too big to display".

 

Anyone has a simple method to download a bookmark list from an app? 

Many thanks

Labels (2)
1 Solution

Accepted Solutions
Marc
Employee
Employee

If you just need a list of bookmarks you can pull it from the QRS API's

Import-Module 'C:\Program Files\Qlik\Sense\Tools\QlikSenseCLI'
Connect-QlikSense -TrustAllCertificates
$QSApps = Get-QSApp

$SelectedApps = $QSApps|Out-GridView -Title "Select Apps" -OutputMode Multiple

$BookmarkList = foreach($App in $SelectedApps){
$BookMarkObjects = Get-QSAppObject -Filter "App.id eq $($App.id) and objecttype eq 'bookmark'" -Full
$BookMarkObjects |Select-Object -Property Name,id,EngineObjectId,Published,Approved,@{Name="AppId"; E={$_.App.id}},@{Name="App"; E={$_.App.Name}}
}
$BookmarkList 

 

View solution in original post

2 Replies
Marc
Employee
Employee

If you just need a list of bookmarks you can pull it from the QRS API's

Import-Module 'C:\Program Files\Qlik\Sense\Tools\QlikSenseCLI'
Connect-QlikSense -TrustAllCertificates
$QSApps = Get-QSApp

$SelectedApps = $QSApps|Out-GridView -Title "Select Apps" -OutputMode Multiple

$BookmarkList = foreach($App in $SelectedApps){
$BookMarkObjects = Get-QSAppObject -Filter "App.id eq $($App.id) and objecttype eq 'bookmark'" -Full
$BookMarkObjects |Select-Object -Property Name,id,EngineObjectId,Published,Approved,@{Name="AppId"; E={$_.App.id}},@{Name="App"; E={$_.App.Name}}
}
$BookmarkList 

 

QSM
Partner - Contributor II
Partner - Contributor II
Author

Hi Marc,

 

Many, many thanks for your solution ! Worked as a charm.