Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Coming your way, the Qlik Data Revolution Virtual Summit. October 27-29. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor

Qlik Engine JSON API - GetObjects response 'Method not found'

When using GetObjects method:

var getobjsmsg = {
"handle": -1,
"method": "GetObjects",
"params": {
"qId": "d6e02e25-50e2-41ac-9e43-28e7cad566c5"
},
"outKey": -1,
"id": 2
}
ws.send(JSON.stringify(getobjsmsg));

I always get the "Method not found" message. Same as other method aside getdoclist and opendoc. Did I use it wrong? If so please give me some examples. Thanks

Labels (1)
1 Reply
Highlighted
Employee
Employee

Hi @thuhtnguyen ,

You need to use the handle in the returned response from OpenDoc:

{
  "jsonrpc":"2.0",
  "id":1,"delta":true,
  "result":{
    "qReturn":[
      {
        "op":"add",
        "path":"/",
        "value":{
           "qType":"Doc",
           "qHandle":1, // <- this one
           "qGenericId":"UID"
        }
      }]
    },
    "change":[1]
}

 

I hope this helps