Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
vincent_ardiet_
Specialist
Specialist

Is it possible to modify bookmarks via API?

Hi,
We have a dozen of applications which are basically the same except that based on their names, the script if loading different dataset.
We had some data islands to bookmarks things like UOM, dividers... As we were not aware of the ability to add variables in them.
Now, as we have cleaned this, the issue is the fact that users have created a bunch of bookmarks across those applications and obviously, as we are going from fields to variables, this will not work as expected.
So, I was interested to know if there is a way to change bookmarks properties using API.
I've tried some ApplyPatches but I have an error message. I can see the GetLayout of the bookmarks, but it seems that this is not really the way this is stored in the object properties. 
If I'm using the path "/qVariableItems" this is accepted but this is not where this should be located.
And other questions, if at some points this is working, would a DoSave save those modifications or ApplyPatch is only relevant for the current session?  



{
  "handle": 3,
  "method": "ApplyPatches",
  "params": [
    [
      {
       "qOp": "add",
       "qPath": "/qBookmark/qVariableItems",
       "qValue": "[ { \"qName\": \"vQtyDivider\", \"qValue\": {\"qText\": \"1000\",\"qIsNumeric\": true,\"qNumber\": 1000}} ]"
      }
    ]
  ]
}

vincent_ardiet__0-1705077458639.png

 

 

Labels (1)
  • API

1 Solution

Accepted Solutions
alex_colombo
Employee
Employee

Hey @vincent_ardiet_ , it seems it is not possible to change bookmark values from Qlik app and from APIs. 

What you can do with APIs is read current bookmarks properties and then re create them.

View solution in original post

1 Reply
alex_colombo
Employee
Employee

Hey @vincent_ardiet_ , it seems it is not possible to change bookmark values from Qlik app and from APIs. 

What you can do with APIs is read current bookmarks properties and then re create them.