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

How to get AppId in load script

Hi, does anybody know if there is ability to get an AppId of current application in load script.

I know where to find an AppId but I need to get it automatically in load script, because I want to use it to log it in databse during loading data and I don't want to set the value as constant in load script because I want it change when I duplicate my app.

Thanks

Mariusz

1 Solution

Accepted Solutions
felipedl
Partner - Specialist III
Partner - Specialist III

Hi Mariusz,

If you're in Qlik Sense server, the DocumentName() function will retrieve the AppID.

As a test, i've only loaded two variables as follows:

let vTest = DocumentName();

let vA = DocumentTitle();

Giving me the following:

Sample.png

Felipe.

View solution in original post

5 Replies
felipedl
Partner - Specialist III
Partner - Specialist III

Hi Mariusz,

If you're in Qlik Sense server, the DocumentName() function will retrieve the AppID.

As a test, i've only loaded two variables as follows:

let vTest = DocumentName();

let vA = DocumentTitle();

Giving me the following:

Sample.png

Felipe.

Not applicable
Author

Hi Felip,

thank you  very much. I tested this function on desktop, so I didn't get AppId

felipedl
Partner - Specialist III
Partner - Specialist III

Mariusz,

In this case, you only have the option to view it on the browser side, or using the API and creating some type of extension to verify the object id.

Obtaining app IDs and object IDs ‒ Qlik Sense

Felipe.

Anonymous
Not applicable
Author

And don't forget when you duplicate the App the duplicate App will have a new App Id different to original App's Id.

Not applicable
Author

Yes Bill, I know it. I just want it is different to original because I want to allow get data (during reload) only for oryginal app.