<?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>article Using OData Connector with OData v4.0 JSON Messages with Qlik Web Connectors (Qlik Cloud) in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with-Qlik/ta-p/1910425</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;Qlik Web Connectors support OData v4.0 and responses in JSON format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This article documents a how-to scenario for Qlik Cloud. For an example using the Standalone Qlik Web Connectors, see&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with/ta-p/1910378" target="_blank" rel="noopener"&gt;Using OData Connector with OData v4.0 JSON Messages with Standalone Qlik Web Connectors&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Web Connectors" id="qlikWebConnectors"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise SaaS" id="qlikSenseEnterpriseSaaS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Sense Business" id="qlikSenseBusiness"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Real-World Scenario&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;Find the total revenue of each product from all orders using the example OData service:&amp;nbsp;&lt;A href="https://services.odata.org/V4/Northwind/Northwind.svc" target="_blank" rel="noopener"&gt;https://services.odata.org/V4/Northwind/Northwind.svc&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Create the OData Connection&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;From the Data Load Editor, create a new connection and select OData&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Select OData Data Load Editor.png" style="width: 931px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75433iED7DC0A24EDF7833/image-size/large?v=v2&amp;amp;px=999" role="button" title="Select OData Data Load Editor.png" alt="Select OData Data Load Editor.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;In the &lt;STRONG&gt;Create new connection dialog&lt;/STRONG&gt;, provide the OData Service Root (&lt;A href="https://services.odata.org/V4/Northwind/Northwind.svc" target="_blank" rel="noopener"&gt;https://services.odata.org/V4/Northwind/Northwind.svc&lt;/A&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="create new connection odata.png" style="width: 574px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75434iF1E86C5EC3234143/image-size/large?v=v2&amp;amp;px=999" role="button" title="create new connection odata.png" alt="create new connection odata.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Name the connection and click &lt;STRONG&gt;Create&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Select Tables from the OData Source&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Using the JsonV4ListResources Table&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;The JsonV4ListResources table will return the available resources from your OData service.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In the &lt;STRONG&gt;Data Load Editor&lt;/STRONG&gt;, select the OData connection you created above and click the &lt;STRONG&gt;Select Data&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;On the &lt;STRONG&gt;Select data to load&lt;/STRONG&gt; dialog select the JsonV4ListResources table and click the &lt;STRONG&gt;Preview&lt;/STRONG&gt; data button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OData Select Orders.png" style="width: 925px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75436iFE2B3ABDCB33C530/image-size/large?v=v2&amp;amp;px=999" role="button" title="OData Select Orders.png" alt="OData Select Orders.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;You can use the values returned in the &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/FONT&gt; column from the JsonV4ListResources table as the input to the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData Resource Path&lt;/FONT&gt;&lt;/STRONG&gt; parameter on the JsonV4GetData table. For this example, we want to use the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Orders &lt;/FONT&gt;&lt;/STRONG&gt;resource.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Using the JsonV4GetData Table&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;The JsonV4GetData table will return the data from the resource specified in the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData Resource Path&lt;/FONT&gt;&lt;/STRONG&gt; parameter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;On the &lt;STRONG&gt;Select data to load&lt;/STRONG&gt; dialog select the JsonV4GetData table&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Enter the value from the name column from the JsonV4ListResources table (&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Orders&lt;/FONT&gt;&lt;/STRONG&gt;) into the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData Resource Path&lt;/FONT&gt;&lt;/STRONG&gt; parameter and click the Preview data button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Preview Data.png" style="width: 910px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75437i71009F1E5E18B28A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Preview Data.png" alt="Preview Data.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;Note that collection valued properties are not returned by this table. A placeholder with the value &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;“[Collection]”&lt;/FONT&gt;&lt;/STRONG&gt; is returned instead. That data can then be retrieved by using the JsonV4GetDataCollection table. In cases where the collection values properties are also navigation properties, the placeholder that is returned is &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;“[Collection]*”&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;In this example, we want to obtain the data in the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Order_Details&lt;/FONT&gt;&lt;/STRONG&gt; collection for each order so we can calculate the total revenue by product. To do this we must use the metadata returned from the JsonV4GetData table and identify the following columns to be used as parameter values in the JsonV4GetDataCollection table:&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;the OData ID column name – in this case, &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OrderID&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OData OrderId.png" style="width: 916px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75438i88BAF73450F173E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="OData OrderId.png" alt="OData OrderId.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;the OData collection column name – in this case, &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Order_Details&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Odata Order Details.png" style="width: 923px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75439i102FD4D4F49CAFD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Odata Order Details.png" alt="Odata Order Details.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Using the JsonV4GetDataCollection Table&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;The JsonV4GetDataCollection table will return the data from the OData collection specified in the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData collection column name&lt;/FONT&gt;&lt;/STRONG&gt; parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;On the &lt;STRONG&gt;Select data to load&lt;/STRONG&gt; dialog check the JsonV4GetDataCollection table&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Enter the value from the &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt; &lt;/FONT&gt;column from the JsonV4ListResources table (&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Orders&lt;/FONT&gt;&lt;/STRONG&gt;) into the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData Resource Path &lt;/FONT&gt;&lt;/STRONG&gt;parameter&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Enter the column name from the JsonV4GetData table that will be used as the ID for the resulting table (&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OrderID&lt;/FONT&gt;&lt;/STRONG&gt;) into the&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; OData ID column name&lt;/FONT&gt;&lt;/STRONG&gt; parameter&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Enter the column name from the JsonV4GetData table of the collection you wish to get data from (&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Order_Details&lt;/FONT&gt;&lt;/STRONG&gt;) into the&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; OData collection column name&lt;/FONT&gt;&lt;/STRONG&gt; parameter&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Since &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Order_Details&lt;/FONT&gt;&lt;/STRONG&gt; is a navigation property, as noted by the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;“[Collection]*”&lt;/FONT&gt;&lt;/STRONG&gt; placeholder, you will need to specify the value &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;$expand=Order_Details&lt;/FONT&gt;&lt;/STRONG&gt; in the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData Query Options&lt;/FONT&gt;&lt;/STRONG&gt; parameter to retrieve the data.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Click the &lt;STRONG&gt;Preview data&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Preview Data again.png" style="width: 920px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75440i86FBB6148BDBB2AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Preview Data again.png" alt="Preview Data again.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;For this example, we also wish to expand the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Product&lt;/FONT&gt; &lt;/STRONG&gt;navigation property within the&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; Order_Details&lt;/FONT&gt;&lt;/STRONG&gt; collection to return the actual product name.&amp;nbsp; To do this you will need to nest the &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;$expand&lt;/STRONG&gt;&lt;/FONT&gt; options and set the value of the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData Query Options&lt;/FONT&gt;&lt;/STRONG&gt; parameter to &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;$expand=Order_Details($expand=Product)&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Select data to load odata.png" style="width: 917px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75442iFF0F564CE591ED45/image-size/large?v=v2&amp;amp;px=999" role="button" title="Select data to load odata.png" alt="Select data to load odata.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Click the&lt;STRONG&gt; Insert Script&lt;/STRONG&gt; button, then&lt;STRONG&gt; Load Data&lt;/STRONG&gt; from the Data Load Editor&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Visualize the OData data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Build a &lt;STRONG&gt;new sheet&lt;/STRONG&gt; in your app&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Bar Chart&lt;/STRONG&gt; to the sheet&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;new Dimension&lt;/STRONG&gt; to your Bar Chart using the following field:&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;JsonV4GetDataCollection.Order_Details_Product_ProductName​&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Add New Barchart.png" style="width: 474px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75443i32180E74534717E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add New Barchart.png" alt="Add New Barchart.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;new Measure&lt;/STRONG&gt; to you Bar Chart with the following expression:&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;Sum([JsonV4GetDataCollection.Order_Details_Quantity] * [JsonV4GetDataCollection.Order_Details_UnitPrice])​&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Add new measure.png" style="width: 523px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75444iBCBAC622A417DE20/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add new measure.png" alt="Add new measure.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Add new measure screenshot 2.png" style="width: 982px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75445i462203555015E5EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add new measure screenshot 2.png" alt="Add new measure screenshot 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Finish editing the sheet&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my new sheet.png" style="width: 458px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75446iFD28DB323A05B80D/image-size/large?v=v2&amp;amp;px=999" role="button" title="my new sheet.png" alt="my new sheet.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 10 May 2022 19:14:14 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2022-05-10T19:14:14Z</dc:date>
    <item>
      <title>Using OData Connector with OData v4.0 JSON Messages with Qlik Web Connectors (Qlik Cloud)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with-Qlik/ta-p/1910425</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;Qlik Web Connectors support OData v4.0 and responses in JSON format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This article documents a how-to scenario for Qlik Cloud. For an example using the Standalone Qlik Web Connectors, see&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with/ta-p/1910378" target="_blank" rel="noopener"&gt;Using OData Connector with OData v4.0 JSON Messages with Standalone Qlik Web Connectors&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik Web Connectors" id="qlikWebConnectors"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise SaaS" id="qlikSenseEnterpriseSaaS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Sense Business" id="qlikSenseBusiness"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Real-World Scenario&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;Find the total revenue of each product from all orders using the example OData service:&amp;nbsp;&lt;A href="https://services.odata.org/V4/Northwind/Northwind.svc" target="_blank" rel="noopener"&gt;https://services.odata.org/V4/Northwind/Northwind.svc&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Create the OData Connection&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;From the Data Load Editor, create a new connection and select OData&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Select OData Data Load Editor.png" style="width: 931px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75433iED7DC0A24EDF7833/image-size/large?v=v2&amp;amp;px=999" role="button" title="Select OData Data Load Editor.png" alt="Select OData Data Load Editor.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;In the &lt;STRONG&gt;Create new connection dialog&lt;/STRONG&gt;, provide the OData Service Root (&lt;A href="https://services.odata.org/V4/Northwind/Northwind.svc" target="_blank" rel="noopener"&gt;https://services.odata.org/V4/Northwind/Northwind.svc&lt;/A&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="create new connection odata.png" style="width: 574px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75434iF1E86C5EC3234143/image-size/large?v=v2&amp;amp;px=999" role="button" title="create new connection odata.png" alt="create new connection odata.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Name the connection and click &lt;STRONG&gt;Create&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Select Tables from the OData Source&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Using the JsonV4ListResources Table&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;The JsonV4ListResources table will return the available resources from your OData service.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In the &lt;STRONG&gt;Data Load Editor&lt;/STRONG&gt;, select the OData connection you created above and click the &lt;STRONG&gt;Select Data&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;On the &lt;STRONG&gt;Select data to load&lt;/STRONG&gt; dialog select the JsonV4ListResources table and click the &lt;STRONG&gt;Preview&lt;/STRONG&gt; data button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OData Select Orders.png" style="width: 925px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75436iFE2B3ABDCB33C530/image-size/large?v=v2&amp;amp;px=999" role="button" title="OData Select Orders.png" alt="OData Select Orders.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;You can use the values returned in the &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/FONT&gt; column from the JsonV4ListResources table as the input to the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData Resource Path&lt;/FONT&gt;&lt;/STRONG&gt; parameter on the JsonV4GetData table. For this example, we want to use the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Orders &lt;/FONT&gt;&lt;/STRONG&gt;resource.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Using the JsonV4GetData Table&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;The JsonV4GetData table will return the data from the resource specified in the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData Resource Path&lt;/FONT&gt;&lt;/STRONG&gt; parameter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;On the &lt;STRONG&gt;Select data to load&lt;/STRONG&gt; dialog select the JsonV4GetData table&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Enter the value from the name column from the JsonV4ListResources table (&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Orders&lt;/FONT&gt;&lt;/STRONG&gt;) into the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData Resource Path&lt;/FONT&gt;&lt;/STRONG&gt; parameter and click the Preview data button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Preview Data.png" style="width: 910px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75437i71009F1E5E18B28A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Preview Data.png" alt="Preview Data.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;Note that collection valued properties are not returned by this table. A placeholder with the value &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;“[Collection]”&lt;/FONT&gt;&lt;/STRONG&gt; is returned instead. That data can then be retrieved by using the JsonV4GetDataCollection table. In cases where the collection values properties are also navigation properties, the placeholder that is returned is &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;“[Collection]*”&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;In this example, we want to obtain the data in the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Order_Details&lt;/FONT&gt;&lt;/STRONG&gt; collection for each order so we can calculate the total revenue by product. To do this we must use the metadata returned from the JsonV4GetData table and identify the following columns to be used as parameter values in the JsonV4GetDataCollection table:&lt;/P&gt;
&lt;UL class="lia-list-style-type-circle"&gt;
&lt;LI&gt;the OData ID column name – in this case, &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OrderID&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OData OrderId.png" style="width: 916px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75438i88BAF73450F173E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="OData OrderId.png" alt="OData OrderId.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;the OData collection column name – in this case, &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Order_Details&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Odata Order Details.png" style="width: 923px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75439i102FD4D4F49CAFD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Odata Order Details.png" alt="Odata Order Details.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Using the JsonV4GetDataCollection Table&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;The JsonV4GetDataCollection table will return the data from the OData collection specified in the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData collection column name&lt;/FONT&gt;&lt;/STRONG&gt; parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;On the &lt;STRONG&gt;Select data to load&lt;/STRONG&gt; dialog check the JsonV4GetDataCollection table&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Enter the value from the &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt; &lt;/FONT&gt;column from the JsonV4ListResources table (&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Orders&lt;/FONT&gt;&lt;/STRONG&gt;) into the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData Resource Path &lt;/FONT&gt;&lt;/STRONG&gt;parameter&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Enter the column name from the JsonV4GetData table that will be used as the ID for the resulting table (&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OrderID&lt;/FONT&gt;&lt;/STRONG&gt;) into the&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; OData ID column name&lt;/FONT&gt;&lt;/STRONG&gt; parameter&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Enter the column name from the JsonV4GetData table of the collection you wish to get data from (&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Order_Details&lt;/FONT&gt;&lt;/STRONG&gt;) into the&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; OData collection column name&lt;/FONT&gt;&lt;/STRONG&gt; parameter&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Since &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Order_Details&lt;/FONT&gt;&lt;/STRONG&gt; is a navigation property, as noted by the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;“[Collection]*”&lt;/FONT&gt;&lt;/STRONG&gt; placeholder, you will need to specify the value &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;$expand=Order_Details&lt;/FONT&gt;&lt;/STRONG&gt; in the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData Query Options&lt;/FONT&gt;&lt;/STRONG&gt; parameter to retrieve the data.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Click the &lt;STRONG&gt;Preview data&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Preview Data again.png" style="width: 920px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75440i86FBB6148BDBB2AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Preview Data again.png" alt="Preview Data again.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;For this example, we also wish to expand the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Product&lt;/FONT&gt; &lt;/STRONG&gt;navigation property within the&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; Order_Details&lt;/FONT&gt;&lt;/STRONG&gt; collection to return the actual product name.&amp;nbsp; To do this you will need to nest the &lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;$expand&lt;/STRONG&gt;&lt;/FONT&gt; options and set the value of the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;OData Query Options&lt;/FONT&gt;&lt;/STRONG&gt; parameter to &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;$expand=Order_Details($expand=Product)&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Select data to load odata.png" style="width: 917px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75442iFF0F564CE591ED45/image-size/large?v=v2&amp;amp;px=999" role="button" title="Select data to load odata.png" alt="Select data to load odata.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Click the&lt;STRONG&gt; Insert Script&lt;/STRONG&gt; button, then&lt;STRONG&gt; Load Data&lt;/STRONG&gt; from the Data Load Editor&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Visualize the OData data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;Build a &lt;STRONG&gt;new sheet&lt;/STRONG&gt; in your app&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;Bar Chart&lt;/STRONG&gt; to the sheet&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;new Dimension&lt;/STRONG&gt; to your Bar Chart using the following field:&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;JsonV4GetDataCollection.Order_Details_Product_ProductName​&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Add New Barchart.png" style="width: 474px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75443i32180E74534717E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add New Barchart.png" alt="Add New Barchart.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Add a &lt;STRONG&gt;new Measure&lt;/STRONG&gt; to you Bar Chart with the following expression:&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;Sum([JsonV4GetDataCollection.Order_Details_Quantity] * [JsonV4GetDataCollection.Order_Details_UnitPrice])​&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Add new measure.png" style="width: 523px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75444iBCBAC622A417DE20/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add new measure.png" alt="Add new measure.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Add new measure screenshot 2.png" style="width: 982px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75445i462203555015E5EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Add new measure screenshot 2.png" alt="Add new measure screenshot 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Finish editing the sheet&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="my new sheet.png" style="width: 458px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75446iFD28DB323A05B80D/image-size/large?v=v2&amp;amp;px=999" role="button" title="my new sheet.png" alt="my new sheet.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 May 2022 19:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with-Qlik/ta-p/1910425</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2022-05-10T19:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using OData Connector with OData v4.0 JSON Messages with Qlik Web Connectors (Qlik Cloud)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with-Qlik/tac-p/1926092#M6354</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to override the OData connector in the script so that you can use a variable as input to the Auth header field?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something similar to "WITH CONNECTION" when working with the REST connector.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 09:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with-Qlik/tac-p/1926092#M6354</guid>
      <dc:creator>E_Langlet</dc:creator>
      <dc:date>2022-05-04T09:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using OData Connector with OData v4.0 JSON Messages with Qlik Web Connectors (Qlik Cloud)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with-Qlik/tac-p/1929936#M6405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/163507"&gt;@E_Langlet&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;You should be able to use the following OData params:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sweta_Sharma_1-1652370084341.png" style="width: 292px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79283i32592BEB666C3655/image-dimensions/292x68?v=v2" width="292" height="68" role="button" title="Sweta_Sharma_1-1652370084341.png" alt="Sweta_Sharma_1-1652370084341.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sweta_Sharma_2-1652370125566.png" style="width: 337px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79284i1292E6724A25C53E/image-dimensions/337x80?v=v2" width="337" height="80" role="button" title="Sweta_Sharma_2-1652370125566.png" alt="Sweta_Sharma_2-1652370125566.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;ODataConnector_CanAuthenticate:&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM [$(CONNECTION-NAME-HERE)]&lt;BR /&gt;(URL IS [https://qwc1.qliktech.com/data?connectorID=ODataConnector&amp;amp;table=CanAuthenticate&amp;amp;oDataServiceRoot=https%3a%2f%2fservices.odata.org%2fV4%2fNorthwind%2fNorthwind.svc%2f&amp;amp;acceptContentType=application%2fjson&amp;amp;&lt;FONT color="#0000FF"&gt;authType=AuthHeader&amp;amp;authHeader=sta_gen_1%3apcLjnVBzDQvNBazWksL3iA%3d%3d%3a7Sjoiyf3Cwe1khAmwvBq3w%3d%3d&lt;/FONT&gt;&amp;amp;appID=&amp;amp;loadAccessToken=vCy6JxRQGj], qvx);&lt;/PRE&gt;
&lt;P&gt;Note that the authHeader is encrypted, and you can get the encrypted value using the Helper connector (&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/Helper-Connector.htm)-" target="_blank"&gt;https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/Helper-Connector.htm)-&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sweta_Sharma_0-1652370027019.png" style="width: 669px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79282i8391BD40F3C2D9A3/image-dimensions/669x229?v=v2" width="669" height="229" role="button" title="Sweta_Sharma_0-1652370027019.png" alt="Sweta_Sharma_0-1652370027019.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 15:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with-Qlik/tac-p/1929936#M6405</guid>
      <dc:creator>Sweta_Sharma</dc:creator>
      <dc:date>2022-05-12T15:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using OData Connector with OData v4.0 JSON Messages with Qlik Web Connectors (Qlik Cloud)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with-Qlik/tac-p/2473003#M14333</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115536"&gt;@Sweta_Sharma&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Is it still relevant ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to generate qvd files in a loop, and I can't figure out what script I should use to make the OData connections, I have a vTableName variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 13:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with-Qlik/tac-p/2473003#M14333</guid>
      <dc:creator>assamf</dc:creator>
      <dc:date>2024-07-25T13:57:32Z</dc:date>
    </item>
  </channel>
</rss>

