Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
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
Hi Marc,
Many, many thanks for your solution ! Worked as a charm.