<?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 REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/ta-p/1928449</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;H3&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Background&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Microsoft is deprecating basic authentication in Microsoft Dynamics 365 Business Central (online), recommending users to instead authenticate with OAuth2. This is in effect from version 20 of Business Central, rolled out in April 2022. Basic auth has been extended for users previously having Business Central v19 who now are upgraded to v20. New customers starting on version 20 must open a support ticket with Microsoft to have basic auth enabled. Basic auth will be turned off for all customers in Business Central v21 (targeted for October 2022).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;LI-PRODUCT title="Qlik REST Connector" id="qlikRESTConnector"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Cloud" id="qlikSenseEnterpriseSaaS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Assumed Scenario and Prerequisite&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This article describes how the existing REST Connector in Qlik Sense can be configured to use OAuth2. The suggested OAuth flow uses &lt;A href="https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/automation-apis-using-s2s-authentication" target="_blank" rel="noopener"&gt;Service-to-Service authentication&lt;/A&gt; against Microsoft Dynamics 365 Business Central. It requires that a single-page application is &lt;A href="https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app" target="_blank" rel="noopener"&gt;registered in the Azure portal&lt;/A&gt; with granted consent in the Business Central environment and that the related Client ID and Client Secret are known.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;Obtain the Access Token&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The configuration requires a separate connection definition for the initial login to get an access token from the Azure portal. The URL to use for this is:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px" data-unlink="true"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;https://login.microsoftonline.com/&amp;lt;BC Tenant ID&amp;gt;/oauth2/v2.0/token&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;Use the POST Method in a REST Connection&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&lt;SPAN&gt;Within a REST Connector definition, use the URL noted above together with the POST method.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;SPAN&gt;The request body must include the parameters Client ID (&lt;FONT face="courier new,courier"&gt;client_id&lt;/FONT&gt;) and the Client Secret (&lt;FONT face="courier new,courier"&gt;client_secret&lt;/FONT&gt;), together with &lt;FONT face="courier new,courier"&gt;grant_type=client_credentials&lt;/FONT&gt; and scope set to the API default (&lt;FONT face="courier new,courier"&gt;scope=https://api.businesscentral.dynamics.com/.default&lt;/FONT&gt;). You must separate the parameters with the ampersand character (&lt;FONT face="courier new,courier"&gt;&lt;FONT&gt;&amp;amp;&lt;/FONT&gt;&lt;/FONT&gt;).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Edited connection.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79046i638842E0F7BC0DDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Edited connection.png" alt="Edited connection.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;Adjust the Script to Capture a Token Parameter&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This connection generates a JSON table (named ‘&lt;FONT face="courier new,courier"&gt;root&lt;/FONT&gt;’), which includes a column with the access token. You can extract the value of the access token into a parameter in the load script with the &lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;LET &lt;/FONT&gt;&lt;SPAN&gt;keyword.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="REST Business Central Sandbox Auth.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79047i32BD0051F672FCAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="REST Business Central Sandbox Auth.png" alt="REST Business Central Sandbox Auth.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Use &lt;FONT face="courier new,courier"&gt;TRACE&lt;/FONT&gt; in the script to output the &lt;FONT face="courier new,courier"&gt;accessToken&lt;/FONT&gt; value in the data load progress window. The token is necessary to copy as you will paste it in the subsequent step, for the initial load of data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data Load Progress.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79048iA0893C1710EB9D73/image-size/large?v=v2&amp;amp;px=999" role="button" title="Data Load Progress.png" alt="Data Load Progress.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Get the Data with Separate REST Connection&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The standard URL for the API endpoint is:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px" data-unlink="true"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;https://api.businesscentral.dynamics.com/v2.0/&amp;lt;environment name&amp;gt;/api/v2.0/&amp;lt;API resource&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See &lt;A href="https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/endpoints-apis-for-dynamics" target="_blank" rel="noopener"&gt;Microsoft documentation&lt;/A&gt; for alternatives and further details.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;Use Query Header Parameters in REST Connection&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Within a separate REST Connector definition, use the API URL together with the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;GET&lt;/FONT&gt; method, and other defaults or adjustments as required, to get access to the data from the desired Business Central API resource.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The connection definition must include two query header parameters, one for the authorization token and one to set &lt;FONT face="courier new,courier"&gt;accept-encoding&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;gzip, deflate&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Query headers.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79049i265E7370E4908F94/image-size/large?v=v2&amp;amp;px=999" role="button" title="Query headers.png" alt="Query headers.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The &lt;FONT face="courier new,courier"&gt;Authorization&lt;/FONT&gt; parameter must initially have the value &lt;FONT face="courier new,courier"&gt;Bearer&lt;/FONT&gt; followed by a valid &lt;FONT face="courier new,courier"&gt;accessToken&lt;/FONT&gt; value, for example, copied from the data load progress window in the previous step.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Adjust the Script to Dynamically use an Obtained Token&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;SPAN&gt;This connection generates a table with the data from the API resource defined in the URL. In this example, the company's resource was used (https://api.businesscentral.dynamics.com/v2.0/Sandbox/api/v2.0/companies).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Adjust the load script by adding a WITH CONNECTION statement including the Authorization header parameter and the accessToken parameter from the preceding script, i.e.&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;WITH CONNECTION (HTTPHEADER “Authorization” “Bearer $(accessToken)”)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WITH CONNECTION.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79050iF7B542FC34326EAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="WITH CONNECTION.png" alt="WITH CONNECTION.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This ensures that the new valid access token generated in the preceding part of the script gets inserted each time the load script is run.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can configure additional API resources in separate connection definitions or by dynamically define the related URLs and tables in the load script.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 05 Sep 2022 12:27:13 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2022-09-05T12:27:13Z</dc:date>
    <item>
      <title>Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/ta-p/1928449</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;H3&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Background&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Microsoft is deprecating basic authentication in Microsoft Dynamics 365 Business Central (online), recommending users to instead authenticate with OAuth2. This is in effect from version 20 of Business Central, rolled out in April 2022. Basic auth has been extended for users previously having Business Central v19 who now are upgraded to v20. New customers starting on version 20 must open a support ticket with Microsoft to have basic auth enabled. Basic auth will be turned off for all customers in Business Central v21 (targeted for October 2022).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Environment:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;LI-PRODUCT title="Qlik REST Connector" id="qlikRESTConnector"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Cloud" id="qlikSenseEnterpriseSaaS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Assumed Scenario and Prerequisite&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This article describes how the existing REST Connector in Qlik Sense can be configured to use OAuth2. The suggested OAuth flow uses &lt;A href="https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/automation-apis-using-s2s-authentication" target="_blank" rel="noopener"&gt;Service-to-Service authentication&lt;/A&gt; against Microsoft Dynamics 365 Business Central. It requires that a single-page application is &lt;A href="https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app" target="_blank" rel="noopener"&gt;registered in the Azure portal&lt;/A&gt; with granted consent in the Business Central environment and that the related Client ID and Client Secret are known.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;Obtain the Access Token&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The configuration requires a separate connection definition for the initial login to get an access token from the Azure portal. The URL to use for this is:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px" data-unlink="true"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;https://login.microsoftonline.com/&amp;lt;BC Tenant ID&amp;gt;/oauth2/v2.0/token&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;Use the POST Method in a REST Connection&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&lt;SPAN&gt;Within a REST Connector definition, use the URL noted above together with the POST method.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;SPAN&gt;The request body must include the parameters Client ID (&lt;FONT face="courier new,courier"&gt;client_id&lt;/FONT&gt;) and the Client Secret (&lt;FONT face="courier new,courier"&gt;client_secret&lt;/FONT&gt;), together with &lt;FONT face="courier new,courier"&gt;grant_type=client_credentials&lt;/FONT&gt; and scope set to the API default (&lt;FONT face="courier new,courier"&gt;scope=https://api.businesscentral.dynamics.com/.default&lt;/FONT&gt;). You must separate the parameters with the ampersand character (&lt;FONT face="courier new,courier"&gt;&lt;FONT&gt;&amp;amp;&lt;/FONT&gt;&lt;/FONT&gt;).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Edited connection.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79046i638842E0F7BC0DDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Edited connection.png" alt="Edited connection.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;Adjust the Script to Capture a Token Parameter&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This connection generates a JSON table (named ‘&lt;FONT face="courier new,courier"&gt;root&lt;/FONT&gt;’), which includes a column with the access token. You can extract the value of the access token into a parameter in the load script with the &lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;LET &lt;/FONT&gt;&lt;SPAN&gt;keyword.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="REST Business Central Sandbox Auth.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79047i32BD0051F672FCAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="REST Business Central Sandbox Auth.png" alt="REST Business Central Sandbox Auth.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Use &lt;FONT face="courier new,courier"&gt;TRACE&lt;/FONT&gt; in the script to output the &lt;FONT face="courier new,courier"&gt;accessToken&lt;/FONT&gt; value in the data load progress window. The token is necessary to copy as you will paste it in the subsequent step, for the initial load of data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data Load Progress.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79048iA0893C1710EB9D73/image-size/large?v=v2&amp;amp;px=999" role="button" title="Data Load Progress.png" alt="Data Load Progress.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Get the Data with Separate REST Connection&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The standard URL for the API endpoint is:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px" data-unlink="true"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;https://api.businesscentral.dynamics.com/v2.0/&amp;lt;environment name&amp;gt;/api/v2.0/&amp;lt;API resource&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;See &lt;A href="https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/endpoints-apis-for-dynamics" target="_blank" rel="noopener"&gt;Microsoft documentation&lt;/A&gt; for alternatives and further details.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#008000"&gt;Use Query Header Parameters in REST Connection&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Within a separate REST Connector definition, use the API URL together with the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;GET&lt;/FONT&gt; method, and other defaults or adjustments as required, to get access to the data from the desired Business Central API resource.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The connection definition must include two query header parameters, one for the authorization token and one to set &lt;FONT face="courier new,courier"&gt;accept-encoding&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;gzip, deflate&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Query headers.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79049i265E7370E4908F94/image-size/large?v=v2&amp;amp;px=999" role="button" title="Query headers.png" alt="Query headers.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The &lt;FONT face="courier new,courier"&gt;Authorization&lt;/FONT&gt; parameter must initially have the value &lt;FONT face="courier new,courier"&gt;Bearer&lt;/FONT&gt; followed by a valid &lt;FONT face="courier new,courier"&gt;accessToken&lt;/FONT&gt; value, for example, copied from the data load progress window in the previous step.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H4&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Adjust the Script to Dynamically use an Obtained Token&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;SPAN&gt;This connection generates a table with the data from the API resource defined in the URL. In this example, the company's resource was used (https://api.businesscentral.dynamics.com/v2.0/Sandbox/api/v2.0/companies).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Adjust the load script by adding a WITH CONNECTION statement including the Authorization header parameter and the accessToken parameter from the preceding script, i.e.&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;WITH CONNECTION (HTTPHEADER “Authorization” “Bearer $(accessToken)”)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WITH CONNECTION.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79050iF7B542FC34326EAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="WITH CONNECTION.png" alt="WITH CONNECTION.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This ensures that the new valid access token generated in the preceding part of the script gets inserted each time the load script is run.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can configure additional API resources in separate connection definitions or by dynamically define the related URLs and tables in the load script.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Sep 2022 12:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/ta-p/1928449</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2022-09-05T12:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/1929348#M6398</link>
      <description>&lt;P&gt;Also worth noting you can use the "Next URL" Pagination option with "root/@odata.nextLink" as the value to make sure you get all the data with the GET connection - mine cut off at 20,000 rows otherwise.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexOmetis_0-1652283627232.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/79197iEFF262E158CF2437/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexOmetis_0-1652283627232.png" alt="AlexOmetis_0-1652283627232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 15:41:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/1929348#M6398</guid>
      <dc:creator>AlexOmetis</dc:creator>
      <dc:date>2022-05-11T15:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/1949228#M6759</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;What kind of Authentication Schema must be used in both connections?.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 15:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/1949228#M6759</guid>
      <dc:creator>diego_rueda</dc:creator>
      <dc:date>2022-06-28T15:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/1952861#M6829</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/9763"&gt;@diego_rueda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The REST Connector is here used in two connection definitions, one to obtain the access token and one to get the data. These are what defines the authentication against MS Dynamics. Then there is also an option for “authentication scheme” within the connection definition UI, for which the default selection ‘Anonymous’ should be just kept as is.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Authentication Anonymous.png" style="width: 272px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/83544iCF4EFCBD8C3A5AA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Authentication Anonymous.png" alt="Authentication Anonymous.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 13:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/1952861#M6829</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2022-07-07T13:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2026325#M8192</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;good day&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im trying to connect following your steps, but l have many dudes about it, hope you can guide me.&lt;/P&gt;
&lt;P&gt;1. Is neccesary add Qlik as a new aplication in Azure Portal before to this process?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Request body:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; grant_type=&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;client_id=&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;client_secret=&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;scope=&lt;A href="https://api.businesscentral.dynamics.com/.default" target="_blank"&gt;https://api.businesscentral.dynamics.com/.default&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Where can l get that information? My provider should give me that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you can help me, l really would aprecciate!&lt;BR /&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 19:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2026325#M8192</guid>
      <dc:creator>Luisanabria</dc:creator>
      <dc:date>2023-01-16T19:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2029088#M8224</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for your guidance on this. Are you able to share some more details around the second 'GET' part of the connection. I have followed your steps and was able to get my token. However, for the second connection I am getting the below error using the exact same steps as you;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wcilliers_0-1674532088846.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98671i33BBB9756BCA3872/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wcilliers_0-1674532088846.png" alt="wcilliers_0-1674532088846.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any guidance on the entire setup of the second connection would be appreciated.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Wynand&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 03:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2029088#M8224</guid>
      <dc:creator>wcilliers</dc:creator>
      <dc:date>2023-01-24T03:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2029697#M8234</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/13049"&gt;@wcilliers&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/3419"&gt;@Luisanabria&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me look into these queries for you.&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 08:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2029697#M8234</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-01-25T08:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2029703#M8235</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/3419"&gt;@Luisanabria&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It requires that a single-page application is&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app" target="_blank" rel="noopener nofollow noreferrer"&gt;registered in the Azure portal&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;with granted consent in the Business Central environment and that the related Client ID and Client Secret are known. If you do not have access to the above, then your provider will need to give them to you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All the best,&lt;BR /&gt;Sonja&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 08:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2029703#M8235</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-01-25T08:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2029731#M8237</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/13049"&gt;@wcilliers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider cab cac c d e f g h i j k l m n o p q r s t cae caf w x y z ab ac ae af ag ah ai aj ak"&gt;Have you&amp;nbsp;included the token as a header with his request as per the step &lt;FONT color="#339966"&gt;&lt;STRONG&gt;Use Query Header Parameters in REST Connection&lt;/STRONG&gt;&lt;/FONT&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider cab cac c d e f g h i j k l m n o p q r s t cae caf w x y z ab ac ae af ag ah ai aj ak"&gt;Providing a screenshot of this step may help us narrow down the problem.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider cab cac c d e f g h i j k l m n o p q r s t cae caf w x y z ab ac ae af ag ah ai aj ak"&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 08:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2029731#M8237</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-01-25T08:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2031218#M8251</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Yes I have included the headers.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wcilliers_0-1675034265339.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/99084i704BB3EA49FB5EC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wcilliers_0-1675034265339.png" alt="wcilliers_0-1675034265339.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wcilliers_1-1675034321487.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/99085iA5D428CCFA2E8C7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wcilliers_1-1675034321487.png" alt="wcilliers_1-1675034321487.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wcilliers_2-1675034352193.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/99086iF285C17EA004C9CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wcilliers_2-1675034352193.png" alt="wcilliers_2-1675034352193.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Wynand&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2023 23:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2031218#M8251</guid>
      <dc:creator>wcilliers</dc:creator>
      <dc:date>2023-01-29T23:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2031701#M8267</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;l tried many times and problem still unauthorized but my Business Central Provider give me more permissions l didnt have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, your post helps me so much, the only dude l have, is, if l need for example "sales" and "clients" is neccesary to create 2 REST different connections? and future create a new REST for a new type data l need?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 16:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2031701#M8267</guid>
      <dc:creator>Luisanabria</dc:creator>
      <dc:date>2023-01-30T16:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2031703#M8268</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/13049"&gt;@wcilliers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi, l tryed with only the Authorization and it works, l didnt use accept-encoding&lt;/P&gt;
&lt;P&gt;if l use the accept-encoding my connection failed, ldk why this happend&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 16:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2031703#M8268</guid>
      <dc:creator>Luisanabria</dc:creator>
      <dc:date>2023-01-30T16:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2031711#M8269</link>
      <description>&lt;P&gt;&lt;EM&gt;"if l need for example "sales" and "clients" is neccesary to create 2 REST different connections"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;No, I would always recommend using one connection for each data source (possibly a couple if you need GET and POST) and then modifying the URL, headers, body etc using the "with connection" modifier, see:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Create-REST-connection/Create-REST-connection.htm" target="_blank"&gt;Create a REST connection | Qlik Connectors Help&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/Design/REST-connector-Using-WITH-CONNECTION/ba-p/1523257" target="_blank"&gt;REST connector: Using WITH CONNECTION - Qlik Community - 1523257&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/How-to-make-URL-dynamic-in-REST-connection/td-p/1665170" target="_blank"&gt;Solved: How to make URL dynamic in REST connection ? - Qlik Community - 1665170&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 30 Jan 2023 17:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2031711#M8269</guid>
      <dc:creator>AlexOmetis</dc:creator>
      <dc:date>2023-01-30T17:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2031820#M8272</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/3419"&gt;@Luisanabria&lt;/a&gt;&amp;nbsp;, Thanks, I have tried this as well but still no success.&lt;/P&gt;
&lt;P&gt;I have also now tried a different BC tenant, but I get the same results.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 23:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2031820#M8272</guid>
      <dc:creator>wcilliers</dc:creator>
      <dc:date>2023-01-30T23:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2033215#M8292</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/13049"&gt;@wcilliers&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After checking with one of our subject matter experts, we believe that this may require a more direct investigation, and I'd recommend logging a support ticket. You can find instructions on how to do so &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/How-to-contact-Qlik-Support/ta-p/1837529" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 08:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2033215#M8292</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-02-02T08:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2034665#M8321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you. I have done some more testing and decided to do everything from the beginning. And I finally got it to work!! Yay!&lt;/P&gt;
&lt;P&gt;There were 2 steps I missed.&lt;/P&gt;
&lt;P&gt;1. Registering the Access INSIDE Business Central&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/automation-apis-using-s2s-authentication#task-2-set-up-the-azure-ad-application-in-" target="_blank"&gt;https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/automation-apis-using-s2s-authentication#task-2-set-up-the-azure-ad-application-in-&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. Adding a redirect URL in the Azure Portal for my registered application&lt;BR /&gt;&lt;A href="https://businesscentral.dynamics.com/OAuthLanding.htm" target="_blank"&gt;https://businesscentral.dynamics.com/OAuthLanding.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again for the support.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 22:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2034665#M8321</guid>
      <dc:creator>wcilliers</dc:creator>
      <dc:date>2023-02-06T22:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2128089#M10448</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;and other experts!&lt;/P&gt;
&lt;P&gt;I've been assigned to get this to work but I'm running into problems with Sense May 2023 Patch 3. I've done this many times with other APIs but I'm hitting a wall here.&lt;/P&gt;
&lt;P&gt;It works in Postman when I make a get-request to the token-endpoint with form-fields filled out with the four values as x-www-form-urlencoded content. I can also get the same to work as a post-request as well.&lt;/P&gt;
&lt;P&gt;It doesn't work if I don't use the form fields.&lt;/P&gt;
&lt;P&gt;Since the form fields work it must be properly configured in the other end so it has to do with the generated traffic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is that I can't figure out how to replicate the working settings with the rest-connector.&lt;/P&gt;
&lt;P&gt;I can't create a valid GET request, no body and other methods like query parameters does not work.&lt;/P&gt;
&lt;P&gt;I can't create a valid POST request according to this instruction. I get a 401 of all things &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I can't use a generic GET or POST connection with different types of manipulation "With connection" either.&lt;/P&gt;
&lt;P&gt;Any ideas on how to get this to work?&lt;/P&gt;
&lt;P&gt;TIA!&lt;/P&gt;
&lt;P&gt;/lars&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 16:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2128089#M10448</guid>
      <dc:creator>Skage</dc:creator>
      <dc:date>2023-10-12T16:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2128218#M10450</link>
      <description>&lt;P&gt;Hi again!&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I knew the issue had to do with body content and how it was defined in Content-Type. It all makes sense when I started thinking about what I actually did vs what I was supposed to do.&lt;/P&gt;
&lt;P&gt;I remembered a while ago when I run into a similar problem and solved it with great help from help from this article made by the fabulous&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28783"&gt;@mountaindude&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Member-Articles/Howto-URL-encoding-in-QlikView-and-Qlik-Sense/ta-p/1496533" target="_blank"&gt;https://community.qlik.com/t5/Member-Articles/Howto-URL-encoding-in-QlikView-and-Qlik-Sense/ta-p/1496533&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I had to url-encode all values for the fields and set the Content-Type to&amp;nbsp;application/x-www-form-urlencoded. There might be easier ways but this is clean enough.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skage_0-1697180227746.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/118167i3165BC40EE62B833/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Skage_0-1697180227746.png" alt="Skage_0-1697180227746.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I hope this can help someone else.&lt;/P&gt;
&lt;P&gt;/lars&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 07:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2128218#M10450</guid>
      <dc:creator>Skage</dc:creator>
      <dc:date>2023-10-13T07:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2129063#M10464</link>
      <description>&lt;P&gt;Thank you for getting back to us with this,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/133643"&gt;@Skage&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 07:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2129063#M10464</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-10-17T07:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using REST Connector with OAuth2 against Microsoft Dynamics 365 Business Central</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2139343#M10714</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28597"&gt;@Sonja_Bauernfeind&lt;/a&gt; Hi! &lt;/P&gt;
&lt;P&gt;Is this supported and tested with the Qlik Cloud (SaaS) REST connector too?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 11:02:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Using-REST-Connector-with-OAuth2-against-Microsoft-Dynamics-365/tac-p/2139343#M10714</guid>
      <dc:creator>StefanBackstrand</dc:creator>
      <dc:date>2023-11-20T11:02:48Z</dc:date>
    </item>
  </channel>
</rss>

