<?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 Standalone Qlik Web Connectors in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with/ta-p/1910378</link>
    <description>&lt;P&gt;Qlik Web Connectors support OData v4.0 and responses in JSON format. The support was introduced in the standalone connectors at the March 2022 release (2.122.1).&lt;/P&gt;
&lt;P&gt;This article documents a how-to scenario for the Standalone Qlik Web Connectors. &lt;SPAN&gt;&amp;nbsp;For an example using Qlik Cloud, see&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with-Qlik/ta-p/1910425" target="_blank" rel="noopener"&gt;Using OData Connector with OData v4.0 JSON Messages with Qlik Web Connectors (Qlik Cloud)&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&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;March 2022 (2.122.1) and later&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&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;Obtain Qlik Sense Script from Qlik Web Connectors Standalone&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;OL&gt;
&lt;LI&gt;In Qlik Web Connectors Standalone, choose the &lt;STRONG&gt;Qlik OData Connector&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Select the &lt;STRONG&gt;JsonV4ListResources&lt;/STRONG&gt; table and click the &lt;STRONG&gt;Parameters&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Provide the&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; OData Service Root&lt;/STRONG&gt;&lt;/FONT&gt; (&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;/SPAN&gt;and click the&lt;STRONG&gt; Save Inputs&lt;/STRONG&gt; and&lt;STRONG&gt; Run Table&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OData Service Root Run Table.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75427i660AEF5E097CCFA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="OData Service Root Run Table.png" alt="OData Service Root Run Table.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;STRONG&gt;&lt;FONT color="#339966"&gt;Using the JsonV4GetData Table&lt;/FONT&gt;&lt;/STRONG&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;OL&gt;
&lt;LI&gt;Go back to the &lt;STRONG&gt;OData&lt;/STRONG&gt; table list from the &lt;STRONG&gt;JsonV4ListResources&lt;/STRONG&gt; table by selecting&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;“&amp;lt; JsonV4ListResources“​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Select the &lt;STRONG&gt;JsonV4GetData&lt;/STRONG&gt; table and click the &lt;STRONG&gt;Parameters&lt;/STRONG&gt; button&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;&lt;EM&gt;Orders&lt;/EM&gt;&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 &lt;STRONG&gt;Save Inputs&lt;/STRONG&gt; and &lt;STRONG&gt;Run Table&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OData Resource Path Run Table.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75428i715997A8C831171F/image-size/large?v=v2&amp;amp;px=999" role="button" title="OData Resource Path Run Table.png" alt="OData Resource Path Run Table.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="OrderID.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75411i0DC4AA2F9A7CBC81/image-size/large?v=v2&amp;amp;px=999" role="button" title="OrderID.png" alt="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;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Order_Details&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OrderDetails.png" style="width: 987px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75412i96E5C6C1C5BF6493/image-size/large?v=v2&amp;amp;px=999" role="button" title="OrderDetails.png" alt="OrderDetails.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Using the JsonV4GetDataCollection Table&lt;/FONT&gt;&lt;/STRONG&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;OL&gt;
&lt;LI&gt;Go back to the OData table list from the JsonV4GetData table by selecting&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;“&amp;lt; JsonV4GetData“​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Select the JsonV4GetDataCollection table and click the &lt;STRONG&gt;Parameters&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Enter the value from the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;name&lt;/FONT&gt; &lt;/STRONG&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;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 $expand 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;&lt;SPAN&gt; parameter to &lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;$expand=Order_Details($expand=Product)&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;Click the &lt;STRONG&gt;Save Inputs&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;Run Table&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Save Inputs and Run Table.png" style="width: 985px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75415i9080FBF86615126F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Save Inputs and Run Table.png" alt="Save Inputs and Run Table.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Qlik Sense (Standard Mode)&lt;/STRONG&gt; tab and click to &lt;STRONG&gt;Copy Script to Clipboard&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Copy script to clipboard.png" style="width: 955px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75416iA51A7D0A8C39DDE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Copy script to clipboard.png" alt="Copy script to clipboard.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Add Your Script to Qlik Sense&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;Paste the Qlik Web Connector OData script you copied above into your Qlik Sense Server app.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open a &lt;STRONG&gt;Qlik Sense Server App&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Navigate to the &lt;STRONG&gt;Data Load Editor&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Create a &lt;STRONG&gt;new Web File connection&lt;/STRONG&gt; and use the URL to your Qlik Web Connector Standalone instance&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="New Web File Connections.png" style="width: 717px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75418iC456712B4C071D6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="New Web File Connections.png" alt="New Web File Connections.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="Select Web File.png" style="width: 618px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75419i754926E483A493DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Select Web File.png" alt="Select Web File.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add the &lt;STRONG&gt;variable assignment&lt;/STRONG&gt; for the new Web File connection to the &lt;STRONG&gt;Data Load Editor&lt;/STRONG&gt;&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;let vQwcConnectionName = ‘lib//QwcStandalone (your user)’;​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Paste the script from Qlik Web Connector Standalone into the &lt;STRONG&gt;Data Load Editor&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Paste Script.png" style="width: 954px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75420i48A9E1ED5A14D39D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Paste Script.png" alt="Paste Script.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Click the Load Data button&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Visualize the OData data&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&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;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/75421i64B170D2F510A440/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;BR /&gt;&lt;BR /&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 and &lt;STRONG&gt;Apply&lt;/STRONG&gt;:&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/75424iDECC3F74458BCB9A/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;/P&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/75425i3F775F5B34E1FBC5/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;BR /&gt;&lt;BR /&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/75426iA31D2B2EA4F064D4/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;</description>
    <pubDate>Thu, 28 Sep 2023 08:18:23 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2023-09-28T08:18:23Z</dc:date>
    <item>
      <title>Using OData Connector with OData v4.0 JSON Messages with Standalone Qlik Web Connectors</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with/ta-p/1910378</link>
      <description>&lt;P&gt;Qlik Web Connectors support OData v4.0 and responses in JSON format. The support was introduced in the standalone connectors at the March 2022 release (2.122.1).&lt;/P&gt;
&lt;P&gt;This article documents a how-to scenario for the Standalone Qlik Web Connectors. &lt;SPAN&gt;&amp;nbsp;For an example using Qlik Cloud, see&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with-Qlik/ta-p/1910425" target="_blank" rel="noopener"&gt;Using OData Connector with OData v4.0 JSON Messages with Qlik Web Connectors (Qlik Cloud)&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&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;March 2022 (2.122.1) and later&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&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;Obtain Qlik Sense Script from Qlik Web Connectors Standalone&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;OL&gt;
&lt;LI&gt;In Qlik Web Connectors Standalone, choose the &lt;STRONG&gt;Qlik OData Connector&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Select the &lt;STRONG&gt;JsonV4ListResources&lt;/STRONG&gt; table and click the &lt;STRONG&gt;Parameters&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Provide the&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt; OData Service Root&lt;/STRONG&gt;&lt;/FONT&gt; (&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;/SPAN&gt;and click the&lt;STRONG&gt; Save Inputs&lt;/STRONG&gt; and&lt;STRONG&gt; Run Table&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OData Service Root Run Table.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75427i660AEF5E097CCFA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="OData Service Root Run Table.png" alt="OData Service Root Run Table.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;STRONG&gt;&lt;FONT color="#339966"&gt;Using the JsonV4GetData Table&lt;/FONT&gt;&lt;/STRONG&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;OL&gt;
&lt;LI&gt;Go back to the &lt;STRONG&gt;OData&lt;/STRONG&gt; table list from the &lt;STRONG&gt;JsonV4ListResources&lt;/STRONG&gt; table by selecting&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;“&amp;lt; JsonV4ListResources“​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Select the &lt;STRONG&gt;JsonV4GetData&lt;/STRONG&gt; table and click the &lt;STRONG&gt;Parameters&lt;/STRONG&gt; button&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;&lt;EM&gt;Orders&lt;/EM&gt;&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 &lt;STRONG&gt;Save Inputs&lt;/STRONG&gt; and &lt;STRONG&gt;Run Table&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OData Resource Path Run Table.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75428i715997A8C831171F/image-size/large?v=v2&amp;amp;px=999" role="button" title="OData Resource Path Run Table.png" alt="OData Resource Path Run Table.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="OrderID.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75411i0DC4AA2F9A7CBC81/image-size/large?v=v2&amp;amp;px=999" role="button" title="OrderID.png" alt="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;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Order_Details&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OrderDetails.png" style="width: 987px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75412i96E5C6C1C5BF6493/image-size/large?v=v2&amp;amp;px=999" role="button" title="OrderDetails.png" alt="OrderDetails.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Using the JsonV4GetDataCollection Table&lt;/FONT&gt;&lt;/STRONG&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;OL&gt;
&lt;LI&gt;Go back to the OData table list from the JsonV4GetData table by selecting&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;“&amp;lt; JsonV4GetData“​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Select the JsonV4GetDataCollection table and click the &lt;STRONG&gt;Parameters&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Enter the value from the &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;name&lt;/FONT&gt; &lt;/STRONG&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;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 $expand 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;&lt;SPAN&gt; parameter to &lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;$expand=Order_Details($expand=Product)&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;Click the &lt;STRONG&gt;Save Inputs&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;Run Table&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Save Inputs and Run Table.png" style="width: 985px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75415i9080FBF86615126F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Save Inputs and Run Table.png" alt="Save Inputs and Run Table.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Qlik Sense (Standard Mode)&lt;/STRONG&gt; tab and click to &lt;STRONG&gt;Copy Script to Clipboard&lt;/STRONG&gt; button&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Copy script to clipboard.png" style="width: 955px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75416iA51A7D0A8C39DDE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Copy script to clipboard.png" alt="Copy script to clipboard.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Add Your Script to Qlik Sense&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;Paste the Qlik Web Connector OData script you copied above into your Qlik Sense Server app.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Open a &lt;STRONG&gt;Qlik Sense Server App&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Navigate to the &lt;STRONG&gt;Data Load Editor&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Create a &lt;STRONG&gt;new Web File connection&lt;/STRONG&gt; and use the URL to your Qlik Web Connector Standalone instance&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="New Web File Connections.png" style="width: 717px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75418iC456712B4C071D6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="New Web File Connections.png" alt="New Web File Connections.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="Select Web File.png" style="width: 618px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75419i754926E483A493DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Select Web File.png" alt="Select Web File.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add the &lt;STRONG&gt;variable assignment&lt;/STRONG&gt; for the new Web File connection to the &lt;STRONG&gt;Data Load Editor&lt;/STRONG&gt;&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;let vQwcConnectionName = ‘lib//QwcStandalone (your user)’;​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Paste the script from Qlik Web Connector Standalone into the &lt;STRONG&gt;Data Load Editor&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Paste Script.png" style="width: 954px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75420i48A9E1ED5A14D39D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Paste Script.png" alt="Paste Script.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Click the Load Data button&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Visualize the OData data&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&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;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/75421i64B170D2F510A440/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;BR /&gt;&lt;BR /&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 and &lt;STRONG&gt;Apply&lt;/STRONG&gt;:&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/75424iDECC3F74458BCB9A/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;/P&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/75425i3F775F5B34E1FBC5/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;BR /&gt;&lt;BR /&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/75426iA31D2B2EA4F064D4/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;</description>
      <pubDate>Thu, 28 Sep 2023 08:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-OData-Connector-with-OData-v4-0-JSON-Messages-with/ta-p/1910378</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-09-28T08:18:23Z</dc:date>
    </item>
  </channel>
</rss>

