Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get the ObjectId's for a sheet in qlik sense using API?

Hi,

I need to get the API to get the Object Id's for a sheet in qlik sense based on app id and sheet id.

Thank You

6 Replies
shraddha_g
Partner - Master III
Partner - Master III

Try to get it from Single Configurator (in Dev-Hub)

Anonymous
Not applicable
Author

Sorry, I need the API call to get the Objects based on sheet id.

_jespers_
Partner - Creator II
Partner - Creator II

Hello,

Is it something like this you mean:

var app = qlik.currApp(this);

var currentSheetId = qlik.navigation.getCurrentSheetId();

app.getAppObjectList( 'sheet', function(reply){ 

    $.each(reply.qAppObjectList.qItems, function(key, value) {

          if(currentSheetId.sheetId==value.qInfo.qId){ 

              // Only objects that are on the same sheet as the extension

          }

     });

});

Anonymous
Not applicable
Author

Thank you for the reply.

Also, I would like to know whether there is any API call something like '/qrs/selection/{id}/app/full' to get the objects in rest client?

joshuapierlo
Partner - Contributor II
Partner - Contributor II

In the rare case of not having worked it out yet in this long time but mainly to 

help out anyone else who's still visiting this post... The rest API call is:

Get("/qrs/app/object/full?Xrfkey=ABCDEFG123456789&filter=app.id+eq+" + [APPID HERE]);

Xrfkey is optional, and in case you want to add a filter to filter out sheets only:

Get("/qrs/app/object/full?Xrfkey=ABCDEFG123456789&filter=app.id+eq+" + [APPID HERE] + "+and+objectType+eq+%27sheet%27");

 Best luck on your coding endeavours!

 
ajaykakkar93
Specialist III
Specialist III

Hi,

You can visit this video for this solution.

Qlik Sense Extensions List Using API

Regards,

Ajay Kakkar

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting