Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
tomas_kukan
Contributor II
Contributor II

Obtaining list of data sources

What API should I use if I want to obtain a list of all my datasources in Qlik? For example, I configured a Postgres connection and extracted 2 tables. Now I would like to get this info from the API - table names, table columns. 

Labels (3)
6 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

For on-prem the QRS API will provide a list of data connections:

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

For Qlik SaaS, it the REST API

https://qlik.dev/apis/rest/data-connections/

You said you want table names and columns -- do you mean the database tables behind those connections or the Qlik tables created from them?

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

 

tomas_kukan
Contributor II
Contributor II
Author

Thank you for the quick response.


I am currently focusing on SaaS, but I would like to ideally handle both cases.

 


For Qlik SaaS, it the REST API

https://qlik.dev/apis/rest/data-connections/

This returns only that I have created the connection to my db (postgres in my case), but it does not list the tables/columns I am importing. 


You said you want table names and columns -- do you mean the database tables behind those connections or the Qlik tables created from them?


Both - I need the database tables/columns and its counterpart in Qlik. Is it possible?

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You may be able to some of the info you are looking for from the Lineage Graphs endpoint. A great resource for QLIK API questions is qlikdeveloper.slack.com.

-Rob

VitorioVincenze
Contributor II
Contributor II

Check out the Qlik Sense Repository Service (QRS) API. It's your go-to for interacting with Qlik's backend stuff, like fetching details about your connections and tables.

tomas_kukan
Contributor II
Contributor II
Author

Thank you. Does QRS work also for the cloud solution, or is it on-premise only? I am having issues finding out how to setup the connection for cloud version.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

QRS is on-prem only. 

-Rob