Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

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

Tags (1)
1 Solution

Accepted Solutions
felipedl
Valued Contributor III

Re: How to get AppId in load script

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.

5 Replies
felipedl
Valued Contributor III

Re: How to get AppId in load script

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

Re: How to get AppId in load script

Hi Felip,

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

felipedl
Valued Contributor III

Re: How to get AppId in load script

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.

Re: How to get AppId in load script

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

Re: How to get AppId in load script

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.

Community Browser