Qlik Community

Ask a Question

Qlik Sense App Development

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

Announcements
Welcome to our newly redesigned Qlik Community! Read our blog to learn about all the new updates: READ BLOG and REPORTED ISSUES
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
Partner
Partner

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
Partner
Partner

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

Not applicable

Hi Felip,

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

Partner
Partner

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.

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

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.