<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get the sheet list using python in Data Movement &amp; Streaming</title>
    <link>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-get-the-sheet-list-using-python/m-p/2120736#M1445</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/245395"&gt;@hsharma-lsquared&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Getting the list of sheets inside an app is performed through the Qlik Engine API. (what is referred as the rpc_client inside the Qlik Python SDK)&lt;/P&gt;
&lt;P&gt;So you cannot use the REST APIs to get that information.&lt;/P&gt;
&lt;P&gt;The rough flow would be:&lt;/P&gt;
&lt;P&gt;1. Open the app&lt;/P&gt;
&lt;P&gt;2. Fetch the SheetList object&lt;/P&gt;
&lt;P&gt;3. Get the layout of the SheetList object (which contains the list of sheets and all their information such as ID, name and thumbnail information, etc)&lt;/P&gt;
&lt;P&gt;Here is a rough example using the Qlik Python SDK:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;from qlik_sdk import Auth, AuthType, Config

api_key = "eyJhbGciOiJFUzM4NCIsImtp...1kSVLwxfrru_pJaNMrqW3UsRfdxUA6"
base_url = "https://xxx.ap.qlikcloud.com"

auth = Auth(config=Config(host=base_url, auth_type=AuthType.APIKey, api_key=api_key))

app_id ="1f488c45-18b3-4037-84f8-b0700b892063"
rpc_session = auth.rpc(app_id=app_id)

with rpc_session.open() as rpc_client:
    app = rpc_client.send("OpenDoc", -1, app_id)
    handle = app["qReturn"]["qHandle"]
    slist_object = rpc_client.send("GetObject", handle,"SheetList")
    slist_handle = slist_object["qReturn"]["qHandle"]
    slist_layout = rpc_client.send("GetLayout", slist_handle)
    print(slist_layout["qLayout"])
    &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 06:05:59 GMT</pubDate>
    <dc:creator>Damien_V</dc:creator>
    <dc:date>2023-09-21T06:05:59Z</dc:date>
    <item>
      <title>How to get the sheet list using python</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-get-the-sheet-list-using-python/m-p/2117050#M1431</link>
      <description>&lt;P&gt;Hello Everyone,&lt;BR /&gt;I am trying to use the qlik app in my website and when I tried to get the list of sheets of app I am not able to get it.&lt;/P&gt;
&lt;P&gt;I have used the python for the implementation&lt;/P&gt;
&lt;P&gt;Library:&amp;nbsp;&lt;A href="https://pypi.org/project/qlik-sdk/" target="_blank" rel="noopener"&gt;https://pypi.org/project/qlik-sdk/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I am referring to the below documentation:&amp;nbsp;&lt;A href="https://qlik.dev/apis/rest/apps" target="_blank"&gt;https://qlik.dev/apis/rest/apps&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please let me know how I can get the list of sheets of app in python.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 23:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-get-the-sheet-list-using-python/m-p/2117050#M1431</guid>
      <dc:creator>hsharma-lsquared</dc:creator>
      <dc:date>2025-03-19T23:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the sheet list using python</title>
      <link>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-get-the-sheet-list-using-python/m-p/2120736#M1445</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/245395"&gt;@hsharma-lsquared&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Getting the list of sheets inside an app is performed through the Qlik Engine API. (what is referred as the rpc_client inside the Qlik Python SDK)&lt;/P&gt;
&lt;P&gt;So you cannot use the REST APIs to get that information.&lt;/P&gt;
&lt;P&gt;The rough flow would be:&lt;/P&gt;
&lt;P&gt;1. Open the app&lt;/P&gt;
&lt;P&gt;2. Fetch the SheetList object&lt;/P&gt;
&lt;P&gt;3. Get the layout of the SheetList object (which contains the list of sheets and all their information such as ID, name and thumbnail information, etc)&lt;/P&gt;
&lt;P&gt;Here is a rough example using the Qlik Python SDK:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;from qlik_sdk import Auth, AuthType, Config

api_key = "eyJhbGciOiJFUzM4NCIsImtp...1kSVLwxfrru_pJaNMrqW3UsRfdxUA6"
base_url = "https://xxx.ap.qlikcloud.com"

auth = Auth(config=Config(host=base_url, auth_type=AuthType.APIKey, api_key=api_key))

app_id ="1f488c45-18b3-4037-84f8-b0700b892063"
rpc_session = auth.rpc(app_id=app_id)

with rpc_session.open() as rpc_client:
    app = rpc_client.send("OpenDoc", -1, app_id)
    handle = app["qReturn"]["qHandle"]
    slist_object = rpc_client.send("GetObject", handle,"SheetList")
    slist_handle = slist_object["qReturn"]["qHandle"]
    slist_layout = rpc_client.send("GetLayout", slist_handle)
    print(slist_layout["qLayout"])
    &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 06:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Movement-Streaming/How-to-get-the-sheet-list-using-python/m-p/2120736#M1445</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2023-09-21T06:05:59Z</dc:date>
    </item>
  </channel>
</rss>

