<?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 read values of custom properties in script in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/read-values-of-custom-properties-in-script/m-p/1244910#M8373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Is there a way to read the custom property values assigned to a user or an app from the script?&lt;/P&gt;&lt;P&gt;Please advise on how to accomplish this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Mar 2017 15:12:15 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2017-03-07T15:12:15Z</dc:date>
    <item>
      <title>read values of custom properties in script</title>
      <link>https://community.qlik.com/t5/Management-Governance/read-values-of-custom-properties-in-script/m-p/1244910#M8373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Is there a way to read the custom property values assigned to a user or an app from the script?&lt;/P&gt;&lt;P&gt;Please advise on how to accomplish this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 15:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/read-values-of-custom-properties-in-script/m-p/1244910#M8373</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2017-03-07T15:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: read values of custom properties in script</title>
      <link>https://community.qlik.com/t5/Management-Governance/read-values-of-custom-properties-in-script/m-p/1244911#M8374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not aware of any simple way.&amp;nbsp; But they are held in the Repository that is a Postgres database and could be used a data source in the load script - but you'd need to reverse engineer the database structure to work out the SQL to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe a QRS API call like &lt;A href="https://help.qlik.com/en-US/sense-developer/3.2/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-User-Owned-Resources.htm" title="https://help.qlik.com/en-US/sense-developer/3.2/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-User-Owned-Resources.htm"&gt;https://help.qlik.com/en-US/sense-developer/3.2/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryS…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must admit I have never used either though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 15:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/read-values-of-custom-properties-in-script/m-p/1244911#M8374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-07T15:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: read values of custom properties in script</title>
      <link>https://community.qlik.com/t5/Management-Governance/read-values-of-custom-properties-in-script/m-p/1572560#M13376</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/216"&gt;@ali_hijazi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a script which selects a custom property (in this case, language) and matches it with the relevant values and users.&lt;/P&gt;&lt;P&gt;Of course you need to create postgreSQL data connection to qlik DB &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;language:
LOAD ID as "Definition_ID", 
	Name as CusomeName
    Where "Name"='language';
SELECT "ID", 
	"Name", 
	"ValueType", 
	"ChoiceValuesString", 
	"ObjectTypesString", 
	"CreatedDate", 
	"ModifiedDate", 
	"ModifiedByUserName" 
FROM "public"."CustomPropertyDefinitions";

Inner Join

LOAD 
	Value,  
	Definition_ID, 
	User_ID
;
SELECT "ID", 
	"Value", 
	"CreatedDate", 
	"ModifiedDate", 
	"ModifiedByUserName", 
	"App_ID", 
	"ContentLibrary_ID", 
	"DataConnection_ID", 
	"EngineService_ID", 
	"ServerNodeConfiguration_ID", 
	"ProxyService_ID", 
	"RepositoryService_ID", 
	"SchedulerService_ID", 
	"Extension_ID", 
	"ReloadTask_ID", 
	"ExternalProgramTask_ID", 
	"Stream_ID", 
	"Definition_ID", 
	"User_ID",
	"VirtualProxyConfig_ID", 
	"UserSyncTask_ID", 
	"PrintingService_ID", 
	"AppContentQuota_ID", 
	"WebExtensionLibrary_ID", 
	"Widget_ID", 
	"SharedContent_ID", 
	"AnalyticConnection_ID" 
FROM "public"."CustomPropertyValues";

Left Join

LOAD ID  as User_ID, 
	UserId, 
	UserDirectory;
SELECT "ID", 
	"UserId", 
	"UserDirectory", 
	"Name", 
	"RolesString", 
	"Inactive", 
	"CreatedDate", 
	"ModifiedDate", 
	"ModifiedByUserName", 
	"RemovedExternally", 
	"Blacklisted", 
	"DeleteProhibited" 
FROM "public"."Users";&lt;/PRE&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Eli.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 09:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/read-values-of-custom-properties-in-script/m-p/1572560#M13376</guid>
      <dc:creator>EliGohar</dc:creator>
      <dc:date>2019-04-24T09:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: read values of custom properties in script</title>
      <link>https://community.qlik.com/t5/Management-Governance/read-values-of-custom-properties-in-script/m-p/1754802#M16809</link>
      <description>&lt;P&gt;Hi Eli,&lt;BR /&gt;Could you please elaborate on how to &lt;SPAN&gt;&amp;nbsp;connect&amp;nbsp; to&amp;nbsp; Qlik DB postgreSQL data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 07:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/read-values-of-custom-properties-in-script/m-p/1754802#M16809</guid>
      <dc:creator>sarmon</dc:creator>
      <dc:date>2020-10-22T07:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: read values of custom properties in script</title>
      <link>https://community.qlik.com/t5/Management-Governance/read-values-of-custom-properties-in-script/m-p/1754806#M16810</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125484"&gt;@sarmon&lt;/a&gt;&amp;nbsp;sure, go to the data load editor, create a new connection, select PostgreSQL data source and fill the values like in the screenshot below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EliGohar_0-1603352990601.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42772i9A85E22FB8EFB213/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EliGohar_0-1603352990601.png" alt="EliGohar_0-1603352990601.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 07:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/read-values-of-custom-properties-in-script/m-p/1754806#M16810</guid>
      <dc:creator>EliGohar</dc:creator>
      <dc:date>2020-10-22T07:54:07Z</dc:date>
    </item>
  </channel>
</rss>

