Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am using the .NET SDK to traverse through all the apps in a Qlik Sense Enterprise account. I have been able to successfully traverse through all apps, but I am having difficulty checking if an app is published or not.
I believe the solution will be similar to getting the stream name of an app (seen here).
My base solution looks something like the following:
My goal is to only traverse the app if it is published. I can see, using Visual Studio inspecting tools, that the data is there, I just need help extracting it.
Viewing the data in VS2017:
(1) Get the layout
(2) Look at "Non-Public members" -> "State"
(3) Expanding "State" you see:
(4) Expanding "Structure" you get all the items which include "published: bool"
My main question is: how do I use "AbstractureStructure" to get the "published" boolean from the app object?
It turns out to be pretty easy...
For Copying:
using (var app = location.App(appIdentifier))
{
var appLayout = app.GetAppLayout();
Boolean isPublished = appLayout.Get<Boolean>("published");
}
It turns out to be pretty easy...
For Copying:
using (var app = location.App(appIdentifier))
{
var appLayout = app.GetAppLayout();
Boolean isPublished = appLayout.Get<Boolean>("published");
}