Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
thuhtnguyen
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
Aiham_Azmeh
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