<?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: Executing MasterObjectList and MasterObject via websocket in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Executing-MasterObjectList-and-MasterObject-via-websocket/m-p/1749850#M13330</link>
    <description>&lt;P&gt;You get them in pretty much the same way as you get sheets. You need to create a session object with properties that include an "AppObjectListDef" instance with type set to "masterobject":&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/September2020/APIs/EngineAPI/definitions-AppObjectListDef.html" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/September2020/APIs/EngineAPI/definitions-AppObjectListDef.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So call a method like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "CreateSessionObject",
  "handle": 1,
  "params": [ { "qInfo": { "qType": "mylist" },
                "qAppObjectListDef": { "qType": "masterobject" }
              }
            ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then simply call "GetLayout" the handle returned by that call. The layout will now contain an instance of the following structure where each entry in the "qItems" property represents one master object:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/September2020/APIs/EngineAPI/definitions-AppObjectList.html" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/September2020/APIs/EngineAPI/definitions-AppObjectList.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2020 08:06:13 GMT</pubDate>
    <dc:creator>Øystein_Kolsrud</dc:creator>
    <dc:date>2020-10-06T08:06:13Z</dc:date>
    <item>
      <title>Executing MasterObjectList and MasterObject via websocket</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Executing-MasterObjectList-and-MasterObject-via-websocket/m-p/1749733#M13329</link>
      <description>&lt;P&gt;I have written a python script that connects to the websocket and pulls json representations of sheets, load scripts, bookmarks etc. in order to add apps to source control and track changes.&amp;nbsp; It turns out the one thing I am missing are Master Objects in the form of Shared Visualizations.&lt;/P&gt;&lt;P&gt;All of the documents I am finding show me how to get this info via the c# client, but is there a way to get this via calls to the websoket or via another web call?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Executing-MasterObjectList-and-MasterObject-via-websocket/m-p/1749733#M13329</guid>
      <dc:creator>johnmorgan</dc:creator>
      <dc:date>2024-11-16T01:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Executing MasterObjectList and MasterObject via websocket</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Executing-MasterObjectList-and-MasterObject-via-websocket/m-p/1749850#M13330</link>
      <description>&lt;P&gt;You get them in pretty much the same way as you get sheets. You need to create a session object with properties that include an "AppObjectListDef" instance with type set to "masterobject":&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/September2020/APIs/EngineAPI/definitions-AppObjectListDef.html" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/September2020/APIs/EngineAPI/definitions-AppObjectListDef.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So call a method like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "CreateSessionObject",
  "handle": 1,
  "params": [ { "qInfo": { "qType": "mylist" },
                "qAppObjectListDef": { "qType": "masterobject" }
              }
            ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then simply call "GetLayout" the handle returned by that call. The layout will now contain an instance of the following structure where each entry in the "qItems" property represents one master object:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/September2020/APIs/EngineAPI/definitions-AppObjectList.html" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/September2020/APIs/EngineAPI/definitions-AppObjectList.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 08:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Executing-MasterObjectList-and-MasterObject-via-websocket/m-p/1749850#M13330</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2020-10-06T08:06:13Z</dc:date>
    </item>
  </channel>
</rss>

