Skip to main content
Announcements
See why Qlik was named a Leader in the 2024 Gartner® Magic Quadrant™ for Data Integration Tools for the ninth year in a row: Get the report
cancel
Showing results for 
Search instead for 
Did you mean: 
Oradim
Partner - Contributor II
Partner - Contributor II

Qlik c# SDK Get App owner

Hi everyone,
I am using the Qlik Sense Engine API with the C# .net SDK (version:14.0.0) to get a list of all apps.
I than open the apps with the foreach(var appIdentifier in location.GetAppIdentifiers()).
I extract some information of the apps like Stream, StreamID, AppName, AppId and go into every sheet and object and look if this app is using custom extension.
I even read all the information of the custom extensions like versions and so on.
Now I also need to find the Owner of the app.
The Username is enough.
But I can't find it. I looked through the AppProperties (appIdentiefier.GetAllProperties()) or looked in the app with the following code (app = location.App(appIdentifier).
Does anyone know how I get the Owner property of an app?

Thank you in advance and best Regards 
Oradim

Labels (2)
1 Solution

Accepted Solutions
Øystein_Kolsrud
Employee
Employee

That type of app metadata is typically the domain of the Repository, not the Engine. So the way to go is to use the Repository API. You probably want one of these endpoints:

https://help.qlik.com/en-US/sense-developer/April2020/APIs/RepositoryServiceAPI/index.html?page=24

https://help.qlik.com/en-US/sense-developer/April2020/APIs/RepositoryServiceAPI/index.html?page=387

If you're accustomed to the .NET SDK, then you might find this library useful when calling the REST endpoints of the repository:

https://www.nuget.org/packages/QlikSenseRestClient/

It implements a similar location configuration protocol as the SDK. Some examples to get you going can be found here:

https://github.com/kolsrud/qlik_rest_sdk/tree/master/Qlik.Sense.RestClient/Examples

Like this one for doing a basic NTLM connection:

https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/Examples/BasicConnection/...

View solution in original post

4 Replies
Øystein_Kolsrud
Employee
Employee

That type of app metadata is typically the domain of the Repository, not the Engine. So the way to go is to use the Repository API. You probably want one of these endpoints:

https://help.qlik.com/en-US/sense-developer/April2020/APIs/RepositoryServiceAPI/index.html?page=24

https://help.qlik.com/en-US/sense-developer/April2020/APIs/RepositoryServiceAPI/index.html?page=387

If you're accustomed to the .NET SDK, then you might find this library useful when calling the REST endpoints of the repository:

https://www.nuget.org/packages/QlikSenseRestClient/

It implements a similar location configuration protocol as the SDK. Some examples to get you going can be found here:

https://github.com/kolsrud/qlik_rest_sdk/tree/master/Qlik.Sense.RestClient/Examples

Like this one for doing a basic NTLM connection:

https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/Examples/BasicConnection/...

Oradim
Partner - Contributor II
Partner - Contributor II
Author

Thank you.
I will look into that option.
I think that could fix the problem.

Oradim
Partner - Contributor II
Partner - Contributor II
Author

Hey Yko,

Thank you very much.
That works perfectly.
Do you also know where in the API I can find the Migration Status?
Or should I open a new post for that?


Best Regards
Oradim

Øystein_Kolsrud
Employee
Employee

Great! Don't forget to mark the question as answered.

About the migration status: I'm not sure how that mechanism works, but I think it's based on the migration hash of the app data from the QRS. So the "migrationHash" property of the following structure: https://help.qlik.com/en-US/sense-developer/April2020/APIs/RepositoryServiceAPI/index.html?page=24

I don't know how you would deduce the migration status from that though... So, yes, it's probably a good idea to open a new post on that.