<?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 Managed [Space Name] or [Space ID] in the Data Load Editor Script in Qlik Sense SaaS or Qlik Sense Enterprise. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Get-Managed-Space-Name-or-Space-ID-in-the-Data-Load-Editor/m-p/2011933#M83668</link>
    <description>&lt;P&gt;I would also love to know this.&lt;/P&gt;
&lt;P&gt;One thing to note is that if you are loading from QVDs, you can write your "from" script like this: &lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table_Name:
LOAD
    "Field 1",
    "Field 2"
FROM [lib://:DataFiles/QVD_Filename.qvd]
(QVD);&lt;/LI-CODE&gt;
&lt;P&gt;This will load from the datafiles folder in the current space that the app is in. I don't know if that was what you were trying to do, but it might be helpful to others looking for a solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 08:37:40 GMT</pubDate>
    <dc:creator>MadsNGrathe</dc:creator>
    <dc:date>2022-12-02T08:37:40Z</dc:date>
    <item>
      <title>Get Managed [Space Name] or [Space ID] in the Data Load Editor Script in Qlik Sense SaaS or Qlik Sense Enterprise.</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Managed-Space-Name-or-Space-ID-in-the-Data-Load-Editor/m-p/1999036#M82749</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Is it possible to get Managed [Space Name] or [Space ID] in the Data Load Editor Script in Qlik Sense SaaS or Qlik Sense Enterprise?&lt;/P&gt;
&lt;P&gt;Our QVDs reside in Azure. We want to publish same app in different spaces and load the data accordingly (using the space name in the path of QVD).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please assist.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 12:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Managed-Space-Name-or-Space-ID-in-the-Data-Load-Editor/m-p/1999036#M82749</guid>
      <dc:creator>mkm7460</dc:creator>
      <dc:date>2022-11-01T12:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get Managed [Space Name] or [Space ID] in the Data Load Editor Script in Qlik Sense SaaS or Qlik Sense Enterprise.</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Managed-Space-Name-or-Space-ID-in-the-Data-Load-Editor/m-p/2011933#M83668</link>
      <description>&lt;P&gt;I would also love to know this.&lt;/P&gt;
&lt;P&gt;One thing to note is that if you are loading from QVDs, you can write your "from" script like this: &lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table_Name:
LOAD
    "Field 1",
    "Field 2"
FROM [lib://:DataFiles/QVD_Filename.qvd]
(QVD);&lt;/LI-CODE&gt;
&lt;P&gt;This will load from the datafiles folder in the current space that the app is in. I don't know if that was what you were trying to do, but it might be helpful to others looking for a solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 08:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Managed-Space-Name-or-Space-ID-in-the-Data-Load-Editor/m-p/2011933#M83668</guid>
      <dc:creator>MadsNGrathe</dc:creator>
      <dc:date>2022-12-02T08:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get Managed [Space Name] or [Space ID] in the Data Load Editor Script in Qlik Sense SaaS or Qlik Sense Enterprise.</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Managed-Space-Name-or-Space-ID-in-the-Data-Load-Editor/m-p/2058028#M86894</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;Apologies it took me a while to respond but i've got it figured out. There is no need for [Space ID] or [Space Name], it can be achieved with [App Name]. Works for both SaaS and Enterprise.&lt;/P&gt;
&lt;P&gt;Consider the following setup.&lt;/P&gt;
&lt;P&gt;We have managed spaces named - Site1, Site2, Site3 based on the geographical location of each site. Each site uses the same sets of apps and qvd generation apps (and hence the script).&lt;/P&gt;
&lt;P&gt;We create the folders in Azure/AWS with the same names so that the QVD Paths are mapped accordingly (for all sites in their respective folder) using variables in Data load editor.&lt;/P&gt;
&lt;P&gt;All the app names must start with these site names (only when we publish) before that they can be named as "General" in "shared space", since we want to publish the same app in all spaces/streams.&lt;BR /&gt;Example - &lt;STRONG&gt;"General - AppName1", "General - Appname2", "General - AppName3"&lt;/STRONG&gt; - These apps will be published to multiple spaces/streams.&lt;/P&gt;
&lt;P&gt;When we publish these apps, for each site, we rename them. &lt;BR /&gt;Example - the &lt;STRONG&gt;"General - AppName1"&lt;/STRONG&gt; will be renamed to (when publishing) &lt;STRONG&gt;"Site1 - AppName1", "Site2 - AppName1","Site3 - AppName1"&lt;/STRONG&gt;, and so on (only when you are publishing - "General" will still remain as is, in shared space)&lt;/P&gt;
&lt;P&gt;Azure folder structure based on the Site Name.&lt;BR /&gt;Example - &lt;EM&gt;&lt;STRONG&gt;lib: &amp;lt;Azure Data connector&amp;gt;/&amp;lt;folder structure&amp;gt;/&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Set all the variables in Qlik Sense Data load editor.&lt;/P&gt;
&lt;P&gt;Example - to store qvds according to the site&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;LET vQVDPath1 = 'lib://DataConn:Azure/$(vCat)/$(vCustomer)/$(vSite)/$(vAppName)/Stg1/';&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Following script does the trick in Data load editor of the general app - We get the appname and pick the first part of it (which is the sitename) before the first "space"&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Let vSiteName = SUBFIELD(DocumentTitle(),' ',1);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This will populate the vSiteName with "Site1", "Site2", "Site3", and so on based on where the app is published. This should apply to both qvd generation app and dashboard app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Additional Complexity&lt;/STRONG&gt; -&lt;/P&gt;
&lt;P&gt;We need to refresh the apps based on the site location (EST, CST, and so on).&lt;BR /&gt;Solution: What I have done is create a single reference table in database (for all sites) and that holds the "site name" and the corresponding variables like "time zone" and others which will be populated in data load editor and the app refreshes accordingly.&lt;/P&gt;
&lt;P&gt;Please find attached screenshot.&lt;/P&gt;
&lt;P&gt;Please let me know if you have any questions.&lt;/P&gt;
&lt;P&gt;HTH.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 14:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Managed-Space-Name-or-Space-ID-in-the-Data-Load-Editor/m-p/2058028#M86894</guid>
      <dc:creator>mkm7460</dc:creator>
      <dc:date>2023-04-06T14:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get Managed [Space Name] or [Space ID] in the Data Load Editor Script in Qlik Sense SaaS or Qlik Sense Enterprise.</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Managed-Space-Name-or-Space-ID-in-the-Data-Load-Editor/m-p/2112772#M90877</link>
      <description>&lt;P&gt;Just in case anyone lands here looking for a solution to this, it's worth noting that you can now (since July 2023) get this information via&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/GetSysAttr.htm" target="_blank"&gt;GetSysAttr - script and chart function | Qlik Cloud Help&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The new script and expression function:&lt;/EM&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;EM&gt;Dual GetSysAttr(VariableName)&lt;/EM&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;EM&gt;Variables accessible in this scope:&lt;/EM&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;EM&gt;tenantId&lt;/EM&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;EM&gt;tenantName&lt;/EM&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;EM&gt;tenantUrl&lt;/EM&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;EM&gt;tenantUrlAlias&lt;/EM&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;EM&gt;tenantRegion&lt;/EM&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;EM&gt;spaceId&lt;/EM&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;EM&gt;spaceName&lt;/EM&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;EM&gt;spaceType&lt;/EM&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 04 Sep 2023 08:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Managed-Space-Name-or-Space-ID-in-the-Data-Load-Editor/m-p/2112772#M90877</guid>
      <dc:creator>AlexOmetis</dc:creator>
      <dc:date>2023-09-04T08:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get Managed [Space Name] or [Space ID] in the Data Load Editor Script in Qlik Sense SaaS or Qlik Sense Enterprise.</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Managed-Space-Name-or-Space-ID-in-the-Data-Load-Editor/m-p/2443470#M97498</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18018"&gt;@AlexOmetis&lt;/a&gt;&amp;nbsp; thanks for this additional comment. I wasn't aware of this new function. That saves me some time!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 11:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Managed-Space-Name-or-Space-ID-in-the-Data-Load-Editor/m-p/2443470#M97498</guid>
      <dc:creator>marc_thomassen</dc:creator>
      <dc:date>2024-04-22T11:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get Managed [Space Name] or [Space ID] in the Data Load Editor Script in Qlik Sense SaaS or Qlik Sense Enterprise.</title>
      <link>https://community.qlik.com/t5/App-Development/Get-Managed-Space-Name-or-Space-ID-in-the-Data-Load-Editor/m-p/2465729#M99200</link>
      <description>&lt;P&gt;Thank you for your comment !&lt;BR /&gt;&lt;BR /&gt;Enjoy your Qlik.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Théo ATRAGIE.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 13:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Get-Managed-Space-Name-or-Space-ID-in-the-Data-Load-Editor/m-p/2465729#M99200</guid>
      <dc:creator>theoat</dc:creator>
      <dc:date>2024-06-26T13:47:54Z</dc:date>
    </item>
  </channel>
</rss>

