<?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 Access URL parameters or custom properties in load script in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Access-URL-parameters-or-custom-properties-in-load-script/m-p/1021945#M1507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlik Sense enterprise, we are looking for a way to create a dynamic load script which, based on the authenticated Qlik user will load data from database connection specific to that user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a system variable that can be accessed within load script that can return name of the user running the Qlik Sense app? Something similar to OSuser()&amp;nbsp; system function, but one that returns parameters specific to current authenticated user / session?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, we considered designating database name as a custom property for a user in QMC, however there does not seem to be a programmatic way to reference this custom property within load script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, we may be able to pass database name and/or username as a URL parameter to Qlik, however we are not finding any documentation on reading URL params from within load script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be welcome. Taking a step back, what we are trying to do is publish apps to many users (each user has own stream), and each user has own database. For scalability / ease of management editing individual load scripts with database connection strings is not an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we would like to do in a load script is take $CurrentQlikUser (passed through URL, session, custom property or system function or ?) and pass this to stored procedure via: &lt;SPAN style="color: #1f497d;"&gt;LOAD ...&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;SQL EXEC storedProc_GetDBName &lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;$(CurrentQlikUser)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar question was asked in the following thread, but no solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/177731"&gt;Tags and custom properties in load script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 00:24:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-31T00:24:04Z</dc:date>
    <item>
      <title>Access URL parameters or custom properties in load script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Access-URL-parameters-or-custom-properties-in-load-script/m-p/1021945#M1507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlik Sense enterprise, we are looking for a way to create a dynamic load script which, based on the authenticated Qlik user will load data from database connection specific to that user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a system variable that can be accessed within load script that can return name of the user running the Qlik Sense app? Something similar to OSuser()&amp;nbsp; system function, but one that returns parameters specific to current authenticated user / session?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, we considered designating database name as a custom property for a user in QMC, however there does not seem to be a programmatic way to reference this custom property within load script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, we may be able to pass database name and/or username as a URL parameter to Qlik, however we are not finding any documentation on reading URL params from within load script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be welcome. Taking a step back, what we are trying to do is publish apps to many users (each user has own stream), and each user has own database. For scalability / ease of management editing individual load scripts with database connection strings is not an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we would like to do in a load script is take $CurrentQlikUser (passed through URL, session, custom property or system function or ?) and pass this to stored procedure via: &lt;SPAN style="color: #1f497d;"&gt;LOAD ...&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;SQL EXEC storedProc_GetDBName &lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;$(CurrentQlikUser)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar question was asked in the following thread, but no solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/177731"&gt;Tags and custom properties in load script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 00:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Access-URL-parameters-or-custom-properties-in-load-script/m-p/1021945#M1507</guid>
      <dc:creator />
      <dc:date>2016-03-31T00:24:04Z</dc:date>
    </item>
  </channel>
</rss>

