<?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: Identify space name - both managed and shared in Move to Qlik Cloud Analytics</title>
    <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Identify-space-name-both-managed-and-shared/m-p/2157958#M1108</link>
    <description>&lt;P&gt;Looks interesting.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2024 15:49:23 GMT</pubDate>
    <dc:creator>F_B</dc:creator>
    <dc:date>2024-01-03T15:49:23Z</dc:date>
    <item>
      <title>Identify space name - both managed and shared</title>
      <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Identify-space-name-both-managed-and-shared/m-p/2157828#M1101</link>
      <description>&lt;P&gt;Hallo community,&lt;/P&gt;
&lt;P&gt;we have one tenant, that must be used both as production environment and developent one.&lt;/P&gt;
&lt;P&gt;As production environment we have defined two managed spaces: "SpaceA" and "SpaceA_DataConnection".&lt;/P&gt;
&lt;P&gt;As development environment we have defined two shared spaces: "&lt;STRONG&gt;DEV_&lt;/STRONG&gt;SpaceA" and "&lt;STRONG&gt;DEV_&lt;/STRONG&gt;SpaceA_DataConnection".&lt;/P&gt;
&lt;P&gt;In order to publish apps automatically, we need to identity the Space Name, so that we would be able to parametrize all paths' variables.&lt;/P&gt;
&lt;P&gt;We expect to write a script such as:&lt;/P&gt;
&lt;PRE&gt;Let vs_SpaceName = &lt;FONT face="andale mono,times"&gt;&lt;STRONG&gt;???&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;BR /&gt;if(left('$(vs_SpaceName)',3)='DEV') then&lt;BR /&gt;    ConnectionPrefix='DEV_';&lt;BR /&gt;else&lt;BR /&gt;    ConnectionPrefix='';&lt;BR /&gt;End if&lt;BR /&gt;Let vs_pathDwStaging = 'lib://$(ConnectionPrefix)SpaceA_DataConnection:Staging';&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Many thanks and best regards,&lt;/P&gt;
&lt;P&gt;Elena&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 10:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Identify-space-name-both-managed-and-shared/m-p/2157828#M1101</guid>
      <dc:creator>elenarudelli</dc:creator>
      <dc:date>2026-01-27T10:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Identify space name - both managed and shared</title>
      <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Identify-space-name-both-managed-and-shared/m-p/2157958#M1108</link>
      <description>&lt;P&gt;Looks interesting.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 15:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Identify-space-name-both-managed-and-shared/m-p/2157958#M1108</guid>
      <dc:creator>F_B</dc:creator>
      <dc:date>2024-01-03T15:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Identify space name - both managed and shared</title>
      <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Identify-space-name-both-managed-and-shared/m-p/2158223#M1116</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;below I post the solution my colleague and I have implemented this morning. You will notice that we need to point to .qvd saved by the monitoring app "&lt;SPAN class="ui-provider ed bkb bgm bsr bss bst bsu bsv bsw bsx bsy bsz bta btb btc btd bte btf btg bth bti btj btk btl btm btn bto btp btq btr bts btt btu btv btw"&gt;Events Monitoring" (rif. &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/The-Qlik-Sense-Monitoring-Applications-for-Cloud-and-On-Premise/ta-p/1822454" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Official-Support-Articles/The-Qlik-Sense-Monitoring-Applications-for-Cloud-and-On-Premise/ta-p/1822454&lt;/A&gt; ).&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;Let vs_DocumentName = DocumentName();&lt;BR /&gt;&lt;BR /&gt;SpaceDetails: &lt;BR /&gt;LOAD&lt;BR /&gt;    AppID,&lt;BR /&gt;    SpaceID&lt;BR /&gt;FROM [lib://Monitoring Apps Data:DataFiles/Apps.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;where AppID = '$(vs_DocumentName)'&lt;BR /&gt;;&lt;BR /&gt;left join (SpaceDetails)&lt;BR /&gt;LOAD&lt;BR /&gt;    SpaceID,&lt;BR /&gt;    "Space Name" as SpaceName&lt;BR /&gt;FROM [lib://Monitoring Apps Data:DataFiles/Spaces.qvd]&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;let vs_SpacePrefix = left(peek('SpaceName', 0, 'SpaceDetails'),3);&lt;BR /&gt;&lt;BR /&gt;If('$(vs_SpacePrefix)' = 'DEV') then &lt;BR /&gt;    let vs_ConnectionPrefix = 'DEV_';&lt;BR /&gt;else &lt;BR /&gt;    let vs_ConnectionPrefix = '';&lt;BR /&gt;end if&lt;BR /&gt;&lt;BR /&gt;drop table SpaceDetails;&lt;BR /&gt;Let vs_DocumentName = Null(); &lt;BR /&gt;Let vs_SpacePrefix = Null();&lt;/PRE&gt;
&lt;P&gt;Have anyone a best solution without using .qvd created by monitoring apps (and without REST connection), but using something like "ComputerName()" in enterprise environments?&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;Elena&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 11:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Identify-space-name-both-managed-and-shared/m-p/2158223#M1116</guid>
      <dc:creator>elenarudelli</dc:creator>
      <dc:date>2024-01-04T11:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Identify space name - both managed and shared</title>
      <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Identify-space-name-both-managed-and-shared/m-p/2158274#M1117</link>
      <description>&lt;P&gt;you will get some info in this link as well..&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Connectivity-Data-Prep/Set-Variable-values-based-on-an-if-then-else-statement/td-p/1818472" target="_blank"&gt;https://community.qlik.com/t5/Connectivity-Data-Prep/Set-Variable-values-based-on-an-if-then-else-statement/td-p/1818472&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 12:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Identify-space-name-both-managed-and-shared/m-p/2158274#M1117</guid>
      <dc:creator>anat</dc:creator>
      <dc:date>2024-01-04T12:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Identify space name - both managed and shared</title>
      <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Identify-space-name-both-managed-and-shared/m-p/2158305#M1118</link>
      <description>&lt;P&gt;Hi Anat,&lt;/P&gt;
&lt;P&gt;Many thanks for the suggestion.&lt;/P&gt;
&lt;P&gt;In the post you have linked the difference between DEV and PROD environment is made also in app's name, that's why it is not necessary to know the space's name. This is an idea, but we like to follow another strategy to separe DEV and PROD environment.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Elena&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 14:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Identify-space-name-both-managed-and-shared/m-p/2158305#M1118</guid>
      <dc:creator>elenarudelli</dc:creator>
      <dc:date>2024-01-04T14:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Identify space name - both managed and shared</title>
      <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Identify-space-name-both-managed-and-shared/m-p/2160567#M1151</link>
      <description>&lt;P&gt;Hello Elena,&lt;/P&gt;
&lt;P&gt;The function GetSysAttr() will return you some information about your system.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your scenario, the argument of the function must be 'SpaceName'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So let a variable be like "&lt;SPAN&gt;=GetSysAttr('spaceName')".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Find more &lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/SystemFunctions/GetSysAttr.htm" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Federico.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 13:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/Identify-space-name-both-managed-and-shared/m-p/2160567#M1151</guid>
      <dc:creator>FedericoDellAcqua</dc:creator>
      <dc:date>2024-01-11T13:22:38Z</dc:date>
    </item>
  </channel>
</rss>

