<?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 Qlik Application Automation:Set load script in Qlik Sense app  from merged GitHub pull request in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Set-load-script-in-Qlik-Sense-app/ta-p/1956230</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;&lt;SPAN&gt;This article gives an overview of setting the load script of the Qlik Sense target app when the GitHub pull request is merged to the main branch using Qlik Application Automation. It explains a basic example of a template configured in Qlik Application Automation for this scenario&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;A template is available in the Qlik Application Automation template picker.&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;From the Qlik Cloud hub, select &lt;STRONG&gt;Add New&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;New automation&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="new automation.png" style="width: 327px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98167i613DBF12FD6170BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="new automation.png" alt="new automation.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Search for &lt;STRONG&gt;Set load script in Qlik Sense app from merged GitHub&lt;/STRONG&gt; pull request in the search bar&lt;/LI&gt;
&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Use template&lt;/STRONG&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="set-load-script-template.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87379i969A696B08E92965/image-size/large?v=v2&amp;amp;px=999" role="button" title="set-load-script-template.png" alt="set-load-script-template.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before you begin, you'll need the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense app in a shared space&lt;/LI&gt;
&lt;LI&gt;GitHub repository with a copy of the shared app's load script as a text file&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 id="toc-hId--493891391"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The following steps describe how to build the demo automation. You can also find an exported version of this automation attached to this article as "Set-Qlik-sense-app-load-script-from-merged-GitHub-pull-request.json".&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Configure new automation to be webhook triggered on every new pull request in the GitHub repo.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="On-new-pull-request.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84249iA3BEA0E08AA75C49/image-size/large?v=v2&amp;amp;px=999" role="button" title="On-new-pull-request.png" alt="On-new-pull-request.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Add a condition block to check whether the pull request was merged and stop automation if the pull request was not merged.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="condition-block-pull-request-merged.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85219iEE99DC4EBC28FCA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="condition-block-pull-request-merged.png" alt="condition-block-pull-request-merged.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Get the load script from the file. In this example, there's only one file so the first file from the&amp;nbsp;&lt;STRONG&gt;List Pull Request Files&lt;/STRONG&gt;&amp;nbsp;block is used. If you have multiple files, use the&lt;STRONG&gt;&amp;nbsp;Lookup Item In List&lt;/STRONG&gt;&amp;nbsp;block to find a specific file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="get-file-content-get-app-info.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85220i29249B879533DBBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="get-file-content-get-app-info.png" alt="get-file-content-get-app-info.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Get App Information&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;block to get basic info about the shared app. The app ID returned by this block can then be used in other blocks so we don't have to configure this in multiple places.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Set the load script from the pull request as the target app's load script. When retrieving files from GitHub, they're base64 encoded by default. Use the Base64 Decode formula from the formula picker to decode the file's content before setting the load script.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="set-load-script-block.png" style="width: 881px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105752i879792A6FA49DC19/image-size/large?v=v2&amp;amp;px=999" role="button" title="set-load-script-block.png" alt="set-load-script-block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Reload the target app with this new load script and alert your team via slack that the load script of the target app was updated&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;A JSON file containing the above automation is attached to this article.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please f&lt;/SPAN&gt;ollow the steps provided in&amp;nbsp;&lt;A title="Upload Blend Workspace" href="https://community.qlik.com/t5/Knowledge-Base/How-to-upload-and-download-blends/ta-p/1781602" target="_self"&gt;How to import&amp;nbsp; automation from a JSON file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;article to import the automation.&lt;/P&gt;
&lt;H3 id="toc-hId-1993621442"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/How-to-manage-load-scripts-in-shared-apps-using-GitHub-and-Qlik/ta-p/1937182" target="_self"&gt;Manage load scripts in shared apps using GitHub and Qlik Application Automation&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Github-How-to-get-started-with-Github-in-Automations/ta-p/1840171" target="_blank" rel="noopener"&gt;How to get started with GitHub in Qlik Application Automation&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/CI-CD-pipelines-for-Qlik-Sense-apps-with-automations-and-Github/ta-p/1860837" target="_blank" rel="noopener"&gt;CI/CD pipelines for Qlik Sense apps and Qlik Application Automation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 25 Apr 2023 11:59:34 GMT</pubDate>
    <dc:creator>AfeefaTk</dc:creator>
    <dc:date>2023-04-25T11:59:34Z</dc:date>
    <item>
      <title>Qlik Application Automation:Set load script in Qlik Sense app  from merged GitHub pull request</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Set-load-script-in-Qlik-Sense-app/ta-p/1956230</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;&lt;SPAN&gt;This article gives an overview of setting the load script of the Qlik Sense target app when the GitHub pull request is merged to the main branch using Qlik Application Automation. It explains a basic example of a template configured in Qlik Application Automation for this scenario&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;A template is available in the Qlik Application Automation template picker.&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;From the Qlik Cloud hub, select &lt;STRONG&gt;Add New&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;New automation&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="new automation.png" style="width: 327px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98167i613DBF12FD6170BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="new automation.png" alt="new automation.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Search for &lt;STRONG&gt;Set load script in Qlik Sense app from merged GitHub&lt;/STRONG&gt; pull request in the search bar&lt;/LI&gt;
&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Use template&lt;/STRONG&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="set-load-script-template.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87379i969A696B08E92965/image-size/large?v=v2&amp;amp;px=999" role="button" title="set-load-script-template.png" alt="set-load-script-template.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before you begin, you'll need the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Qlik Sense app in a shared space&lt;/LI&gt;
&lt;LI&gt;GitHub repository with a copy of the shared app's load script as a text file&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3 id="toc-hId--493891391"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The following steps describe how to build the demo automation. You can also find an exported version of this automation attached to this article as "Set-Qlik-sense-app-load-script-from-merged-GitHub-pull-request.json".&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Configure new automation to be webhook triggered on every new pull request in the GitHub repo.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="On-new-pull-request.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84249iA3BEA0E08AA75C49/image-size/large?v=v2&amp;amp;px=999" role="button" title="On-new-pull-request.png" alt="On-new-pull-request.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Add a condition block to check whether the pull request was merged and stop automation if the pull request was not merged.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="condition-block-pull-request-merged.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85219iEE99DC4EBC28FCA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="condition-block-pull-request-merged.png" alt="condition-block-pull-request-merged.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Get the load script from the file. In this example, there's only one file so the first file from the&amp;nbsp;&lt;STRONG&gt;List Pull Request Files&lt;/STRONG&gt;&amp;nbsp;block is used. If you have multiple files, use the&lt;STRONG&gt;&amp;nbsp;Lookup Item In List&lt;/STRONG&gt;&amp;nbsp;block to find a specific file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="get-file-content-get-app-info.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85220i29249B879533DBBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="get-file-content-get-app-info.png" alt="get-file-content-get-app-info.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Get App Information&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;block to get basic info about the shared app. The app ID returned by this block can then be used in other blocks so we don't have to configure this in multiple places.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Set the load script from the pull request as the target app's load script. When retrieving files from GitHub, they're base64 encoded by default. Use the Base64 Decode formula from the formula picker to decode the file's content before setting the load script.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="set-load-script-block.png" style="width: 881px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105752i879792A6FA49DC19/image-size/large?v=v2&amp;amp;px=999" role="button" title="set-load-script-block.png" alt="set-load-script-block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Reload the target app with this new load script and alert your team via slack that the load script of the target app was updated&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;A JSON file containing the above automation is attached to this article.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please f&lt;/SPAN&gt;ollow the steps provided in&amp;nbsp;&lt;A title="Upload Blend Workspace" href="https://community.qlik.com/t5/Knowledge-Base/How-to-upload-and-download-blends/ta-p/1781602" target="_self"&gt;How to import&amp;nbsp; automation from a JSON file&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;article to import the automation.&lt;/P&gt;
&lt;H3 id="toc-hId-1993621442"&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Related Content&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/How-to-manage-load-scripts-in-shared-apps-using-GitHub-and-Qlik/ta-p/1937182" target="_self"&gt;Manage load scripts in shared apps using GitHub and Qlik Application Automation&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Github-How-to-get-started-with-Github-in-Automations/ta-p/1840171" target="_blank" rel="noopener"&gt;How to get started with GitHub in Qlik Application Automation&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/CI-CD-pipelines-for-Qlik-Sense-apps-with-automations-and-Github/ta-p/1860837" target="_blank" rel="noopener"&gt;CI/CD pipelines for Qlik Sense apps and Qlik Application Automation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Apr 2023 11:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Set-load-script-in-Qlik-Sense-app/ta-p/1956230</guid>
      <dc:creator>AfeefaTk</dc:creator>
      <dc:date>2023-04-25T11:59:34Z</dc:date>
    </item>
  </channel>
</rss>

