<?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: sample how to read all the master items using SDK and C# in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358563#M7889</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Apr 2017 18:58:11 GMT</pubDate>
    <dc:creator>amien</dc:creator>
    <dc:date>2017-04-07T18:58:11Z</dc:date>
    <item>
      <title>sample how to read all the master items using SDK and C#</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358561#M7887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;anyone got an example for me in c# or point me in the right direction? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 20:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358561#M7887</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2017-04-06T20:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: sample how to read all the master items using SDK and C#</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358562#M7888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a public example for traversing apps and retrieving master objects using the .NET SDK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AptkQlik/PublicExamples/tree/master/AppTraverser"&gt;https://github.com/AptkQlik/PublicExamples/tree/master/AppTraverser&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 08:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358562#M7888</guid>
      <dc:creator>mow</dc:creator>
      <dc:date>2017-04-07T08:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: sample how to read all the master items using SDK and C#</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358563#M7889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 18:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358563#M7889</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2017-04-07T18:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: sample how to read all the master items using SDK and C#</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358564#M7890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This didn't quite work afterall .. it works fine on the LicenseMonitor app and the Operational app .. but when i create in a new all some master items .. they wont show. any idea why this is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Apr 2017 11:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358564#M7890</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2017-04-29T11:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: sample how to read all the master items using SDK and C#</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358565#M7891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds to me like this is the method you are looking for: &lt;A href="http://help.qlik.com/en-US/sense-developer/3.2/apis/net%20sdk/html/M_Qlik_Sense_Client_AppExtensions_GetMasterObjectList.htm" title="http://help.qlik.com/en-US/sense-developer/3.2/apis/net%20sdk/html/M_Qlik_Sense_Client_AppExtensions_GetMasterObjectList.htm"&gt;AppExtensions.GetMasterObjectList Method&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 14:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358565#M7891</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2017-05-02T14:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: sample how to read all the master items using SDK and C#</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358566#M7892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you elaborate a bit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;Qlik.Sense.Client.&lt;SPAN class="s1"&gt;IMasterObjectList&lt;/SPAN&gt; masterobjects = Qlik.Sense.Client.&lt;SPAN class="s1"&gt;AppExtensions&lt;/SPAN&gt;.GetMasterObjectList(app);&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;This .. and then what? How do i loop though the objects?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 20:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358566#M7892</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2017-05-03T20:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: sample how to read all the master items using SDK and C#</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358567#M7893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once you have the IMasterObjectList instance, you can access the information about which master objects are available from the layout of the list. To get the layout, you would do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1493888305849263" jivemacro_uid="_1493888305849263" modifiedtitle="true"&gt;
&lt;P&gt;var listLayout = masterObjectList.GetLayout().As&amp;lt;MasterObjectListLayout&amp;gt;();&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the set of object IDs for the master objects are available from this property: &lt;A href="http://help.qlik.com/en-US/sense-developer/3.2/apis/net%20sdk/html/P_Qlik_Sense_Client_MasterObjectListLayout_AppObjectList.htm" title="http://help.qlik.com/en-US/sense-developer/3.2/apis/net%20sdk/html/P_Qlik_Sense_Client_MasterObjectListLayout_AppObjectList.htm"&gt;MasterObjectListLayout.AppObjectList Property&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Those IDs can in turn be used to get the actual objects using the "GetObject" method from the app. So the full code would probably look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14938889406607132" jivemacro_uid="_14938889406607132" modifiedtitle="true"&gt;
&lt;P&gt;var masterObjectList = app.GetMasterObjectList();&lt;/P&gt;
&lt;P&gt;var listLayout = masterObjectList.GetLayout().As&amp;lt;MasterObjectListLayout&amp;gt;();&lt;/P&gt;
&lt;P&gt;var objectIDs = listLayout.AppObjectList.Items.Select(item =&amp;gt; item.Info.Id);&lt;/P&gt;
&lt;P&gt;var objects = objectIDs.Select(id =&amp;gt; app.GetObject&amp;lt;GenericObject&amp;gt;(id));&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, if you prefer, you could use the "Items" shortcut on the masterObjectList object to avoid having to explicitly go through the layout. (You will go through the layout anyway, but it will be taken care of in the background.) In that case the code would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c#" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14938890548241957 jive_text_macro" jivemacro_uid="_14938890548241957" modifiedtitle="true"&gt;
&lt;P&gt;var masterObjectList = app.GetMasterObjectList();&lt;/P&gt;
&lt;P&gt;var objectIDs = masterObjectList.Items.Select(item =&amp;gt; item.Info.Id);&lt;/P&gt;
&lt;P&gt;var objects = objectIDs.Select(id =&amp;gt; app.GetObject&amp;lt;GenericObject&amp;gt;(id));&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 09:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358567#M7893</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2017-05-04T09:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: sample how to read all the master items using SDK and C#</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358568#M7894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried your solution but the AppObjectLlist always comes back with a Count of 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a bit of background on what I'm trying to achieve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have several apps... with 100+ master dimensions / measures each. Essentially, I want a ist of each master item along with its description.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be gratefully received &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ta in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 21:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358568#M7894</guid>
      <dc:creator>ichimiike</dc:creator>
      <dc:date>2018-04-20T21:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: sample how to read all the master items using SDK and C#</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358569#M7895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The MasterObjectList will only contain references to generic objects. If you want to list master dimensions and measures, then you need to use these methods instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/April2018/apis/net+sdk/html/M_Qlik_Sense_Client_AppExtensions_GetMeasureList.htm" title="https://help.qlik.com/en-US/sense-developer/April2018/apis/net+sdk/html/M_Qlik_Sense_Client_AppExtensions_GetMeasureList.htm"&gt;https://help.qlik.com/en-US/sense-developer/April2018/apis/net+sdk/html/M_Qlik_Sense_Client_AppExtensions_GetMeasureList…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/April2018/apis/net+sdk/html/M_Qlik_Sense_Client_AppExtensions_GetDimensionList.htm" title="https://help.qlik.com/en-US/sense-developer/April2018/apis/net+sdk/html/M_Qlik_Sense_Client_AppExtensions_GetDimensionList.htm"&gt;https://help.qlik.com/en-US/sense-developer/April2018/apis/net+sdk/html/M_Qlik_Sense_Client_AppExtensions_GetDimensionLi…&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 09:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358569#M7895</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-05-02T09:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: sample how to read all the master items using SDK and C#</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358570#M7896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this... but as it happens, I posted the question and then worked it out for myself &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/299164"&gt;Listing master items using .NET SDK&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice to see I got the same solution as you proposed though&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 09:23:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/sample-how-to-read-all-the-master-items-using-SDK-and-C/m-p/1358570#M7896</guid>
      <dc:creator>ichimiike</dc:creator>
      <dc:date>2018-05-02T09:23:01Z</dc:date>
    </item>
  </channel>
</rss>

