<?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: Get the SheetID by name in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550388#M110366</link>
    <description>&lt;P&gt;I'm completely in the cloud, no enterprise setup.&lt;/P&gt;&lt;P&gt;With node.js I'm completely lost - finally I need the information about the sheet's ID in the load script. Using node.js from outside Qlik is clear and that works. But how to access the API (which one?) from a load script remains open.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jun 2026 15:12:23 GMT</pubDate>
    <dc:creator>bean</dc:creator>
    <dc:date>2026-06-01T15:12:23Z</dc:date>
    <item>
      <title>Get the SheetID by name</title>
      <link>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550126#M110348</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;We want to hyperlink to another sheet. Since SheetIDs change from app instance to instance, I'm looking for a function to retrieve a particular sheet's ID in an expression or during load (and put result in a variable).&lt;/P&gt;&lt;P&gt;The URL to an sheet looks like&lt;/P&gt;&lt;P&gt;&lt;EM&gt;https://&amp;lt;Server name&amp;gt;/sense/app/&amp;lt;App ID&amp;gt;/sheet/&amp;lt;Sheet ID&amp;gt;/state/analysis&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and using an expression I can resolve most parts dynamically. But not yet the sheet ID being here&amp;nbsp;&lt;EM&gt;YMSKeu&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;='https://' &amp;amp; GetSysAttr('tenantUrlAlias') &amp;amp; '/sense/app/' &amp;amp; DocumentName() &amp;amp; '/sheet/YMSKeu/state/analysis'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Any idea how to find the right sheet ID e.g. from it's name?&amp;nbsp;&lt;EM&gt;ObjectId()&lt;/EM&gt; or&amp;nbsp;&lt;EM&gt;GetActiveSheetId()&lt;/EM&gt; do not help since I'm looking for another sheet than the function is running in.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanx so much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2026 12:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550126#M110348</guid>
      <dc:creator>bean</dc:creator>
      <dc:date>2026-05-28T12:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get the SheetID by name</title>
      <link>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550133#M110349</link>
      <description>&lt;P&gt;You should be able to use the Qlik API to get the list of sheets from the app:&lt;/P&gt;&lt;P&gt;GET https://&amp;lt;YourServer&amp;gt;/qrs/app/object?filter=app.id eq &amp;lt;AppID&amp;gt; and objectType eq 'sheet'&lt;/P&gt;&lt;P&gt;see e.g.&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-RestAPI-Get-Sheet-Info-for-App/td-p/1702886" target="_blank"&gt;https://community.qlik.com/t5/Integration-Extension-APIs/QlikSense-RestAPI-Get-Sheet-Info-for-App/td-p/1702886&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DocumentName() will get you the ID of the current app to pass along to the API, though note that using this in script will use the ID of the app where it was last reloaded so it is important that the reload happens on the published app rather than a manual reload in someone's work and then publish.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2026 13:52:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550133#M110349</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2026-05-28T13:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get the SheetID by name</title>
      <link>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550302#M110357</link>
      <description>&lt;P&gt;May be try this&amp;nbsp;&lt;/P&gt;&lt;P&gt;GetActiveSheetId()&lt;/P&gt;&lt;P&gt;ObjectId()&lt;/P&gt;&lt;P&gt;SheetTitle()&lt;/P&gt;</description>
      <pubDate>Sat, 30 May 2026 17:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550302#M110357</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2026-05-30T17:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get the SheetID by name</title>
      <link>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550352#M110362</link>
      <description>&lt;P&gt;Thanks for the idea using the API.&lt;BR /&gt;From GET https://&amp;lt;YourServer&amp;gt;/api/v1/apps/{appID} I get meaningful results, so my API key seems be working.&lt;BR /&gt;But using /qrs/about or other basic qrs calls there are no responses. I'm setting the parameter&amp;nbsp;&lt;SPAN class=""&gt;Xrfkey and header&amp;nbsp;x-Qlik-Xrfkey.&lt;BR /&gt;I fear that this works only for Sense Windows and not for the Qlik Sense Cloud ..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2026 10:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550352#M110362</guid>
      <dc:creator>bean</dc:creator>
      <dc:date>2026-06-01T10:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get the SheetID by name</title>
      <link>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550353#M110363</link>
      <description>&lt;P&gt;I had assumed you are using Enterprise, since your link structure included&amp;nbsp;&lt;EM&gt;&amp;lt;Server name&amp;gt;&lt;/EM&gt;, but looking at it again I see your second link had tenant ID. Are you using a mixed environment with both Cloud and Client-managed? They do tend to have different offerings in this regard, so you may need to script through testing which one you're on first and then use the relevant API.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For cloud, have a look at this for the API you presumably need. It's fairly straightforward, luckily:&lt;/P&gt;&lt;P&gt;&lt;A href="https://qlik.dev/toolkits/qlik-api/examples/app-sheet-list/" target="_blank"&gt;https://qlik.dev/toolkits/qlik-api/examples/app-sheet-list/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2026 11:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550353#M110363</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2026-06-01T11:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get the SheetID by name</title>
      <link>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550388#M110366</link>
      <description>&lt;P&gt;I'm completely in the cloud, no enterprise setup.&lt;/P&gt;&lt;P&gt;With node.js I'm completely lost - finally I need the information about the sheet's ID in the load script. Using node.js from outside Qlik is clear and that works. But how to access the API (which one?) from a load script remains open.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2026 15:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550388#M110366</guid>
      <dc:creator>bean</dc:creator>
      <dc:date>2026-06-01T15:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get the SheetID by name</title>
      <link>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550473#M110373</link>
      <description>&lt;P&gt;I'm a bit outside of my comfort zone here, since I've never attempted to do this from within a script, but I had a chat with my local LLM and after some wrangling, it suggested this:&lt;/P&gt;&lt;DIV class=""&gt;[...]you can extract this information natively using Qlik’s &lt;STRONG&gt;REST Connector&lt;/STRONG&gt; paired with the Qlik Cloud &lt;STRONG&gt;Evaluations API&lt;/STRONG&gt;. This API evaluates app structures over standard HTTP and outputs app metadata, including public sheet details.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Step 1: Create the REST Connection&lt;/DIV&gt;&lt;DIV class=""&gt;Before editing your script, you must set up a generic REST data connection in your Qlik Cloud Space:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Open your &lt;STRONG&gt;Data Load Editor&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Click &lt;STRONG&gt;Create new connection&lt;/STRONG&gt; and select &lt;STRONG&gt;REST&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Configure the following parameters:&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;URL&lt;/STRONG&gt;: https://&amp;lt;your-tenant&amp;gt;.&amp;lt;region&amp;gt;:// &lt;EM&gt;(We will dynamically overwrite EMPTY in the script).&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Method&lt;/STRONG&gt;: POST&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Request body&lt;/STRONG&gt;: {} (A blank JSON object).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Query headers&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Authorization: Bearer YOUR_API_KEY&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Content-Type: application/json&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Name the connection QlikCloud_EvaluationsAPI and save it.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;HR /&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Step 2: The Load Script&lt;/DIV&gt;&lt;DIV class=""&gt;Paste this script block into your Data Load Editor. It dynamically rewrites the URL to insert your target &lt;STRONG&gt;App ID&lt;/STRONG&gt; and extracts the sheet data into a Qlik data table.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;// 1. Define your connection variables
SET vTenantUrl = '://qlikcloud.com'; // Replace with your actual Qlik tenant URL
SET vAppId     = 'YOUR_TARGET_APP_ID';               // Replace with the specific App ID you want to scan

// 2. Fetch the sheet metadata using the Evaluations API
Sheets_Raw:
SQL SELECT 
    "id" AS "Sheet_ID",
    "type" AS "Object_Type",
    "__KEY_public",
    "__FK_public"
FROM JSON (wrap on) "root" PK "__KEY_root"
WITH CONNECTION (
    URL "https://$(vTenantUrl)/v1/apps/$(vAppId)/evaluations",
    HTTPHEADER "Content-Type" "application/json"
);

// 3. Extract descriptive details (like Titles) linked to those sheets
Sheet_Meta:
SQL SELECT 
    "title" AS "Sheet_Title",
    "description" AS "Sheet_Description",
    "__FK_meta"
FROM JSON (wrap on) "meta" PK "__KEY_meta"
FK "__FK_meta" TRANSFERRES "__KEY_public"; 
// Note: Transferres links the underlying relational structure built by the REST connector

// 4. Resolve and combine the fields into a clean final table
[App Sheets]:
NoConcatenate
LOAD 
    [Sheet_ID],
    [Sheet_Title],
    [Sheet_Description]
RESIDENT Sheets_Raw
LEFT JOIN (Sheets_Raw)
LOAD 
    [Sheet_Title],
    [Sheet_Description],
    [__FK_meta] AS [__KEY_public]
RESIDENT Sheet_Meta;

// 5. Clean up temporary extraction tables
DROP TABLES Sheets_Raw, Sheet_Meta;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Use code with caution.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Apologies if this isn't helpful - I generally avoid using AI generated information here, but I couldn't find a definitive source elsewhere and as mentioned I don't have first-hand experience attempting this.&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;</description>
      <pubDate>Tue, 02 Jun 2026 13:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-the-SheetID-by-name/m-p/2550473#M110373</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2026-06-02T13:40:16Z</dc:date>
    </item>
  </channel>
</rss>

