<?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:Verify load script in Qlik Sense app from new GitHub pull request in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Verify-load-script-in-Qlik-Sense-app/ta-p/1955548</link>
    <description>&lt;P&gt;&lt;SPAN&gt;This article gives an overview of verifying the load script of the Qlik Sense app from new Github pull request 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;You can make use of the template which is already available in the template picker&lt;/P&gt;
&lt;P&gt;You can find it by navigating to Add new -&amp;gt; New automation -&amp;gt; Search templates and search for 'Verify load script in Qlik Sense app from new GitHub pull request' in the search bar and click on the Use template option in order to use it in the automation&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="verify-load-script-template.png" style="width: 519px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87380iC61B3BE6EBBED63B/image-dimensions/519x276?v=v2" width="519" height="276" role="button" title="verify-load-script-template.png" alt="verify-load-script-template.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H3 id="toc-hId-1313563072"&gt;Environment&lt;/H3&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;Steps:&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 "Verify-Qlik-Sense-app-load-script-from-new-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: 452px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84136i7BDF49F18AC18F0D/image-dimensions/452x273?v=v2" width="452" height="273" 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;Add a condition block to check whether the new pull request was opened and stop automation if the pull request was not opened. You can change the condition to use other actions from the pull request (like 'synchronize').&amp;nbsp;Or use the 'Add condition' option for multiple actions.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="condition-block-pull-request-opened.png" style="width: 470px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85211iEB8A2E59F5E756B3/image-dimensions/470x207?v=v2" width="470" height="207" role="button" title="condition-block-pull-request-opened.png" alt="condition-block-pull-request-opened.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Get the load script from the file using the 'Get File Content' block. In this example, there's only one file so the first file from the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;List Pull Request Files&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;block is used. If you have multiple files, use the&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Lookup Item In List&lt;/STRONG&gt;&lt;SPAN&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.png" style="width: 473px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85212i90F8FEA6B15B87E7/image-dimensions/473x233?v=v2" width="473" height="233" role="button" title="get-file-content.png" alt="get-file-content.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Create a new (temporary) app and set the load script from the pull request as this 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.&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: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105748i0DE560D68C720CC4/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;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Reload &amp;amp; delete the temporary app and evaluate the reload's outcome:
&lt;OL&gt;
&lt;LI&gt;If the reload is successful, alert your team via slack with a success message and use &lt;STRONG&gt;Add Pull Request Review&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;block to comment on the pull request that&lt;/SPAN&gt;&amp;nbsp;the load script test has succeeded&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reload-succeeded-condition-block.png" style="width: 455px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85214iB46F3E6A383B7852/image-dimensions/455x268?v=v2" width="455" height="268" role="button" title="reload-succeeded-condition-block.png" alt="reload-succeeded-condition-block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;If the reload fails, alert your team via slack with a failure message and&amp;nbsp;&lt;/SPAN&gt;use &lt;STRONG&gt;Add Pull Request Review&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;block to request changes on the pull request&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add-pull-request-review.png" style="width: 473px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85217i79DA5D3C5A937B5E/image-dimensions/473x285?v=v2" width="473" height="285" role="button" title="add-pull-request-review.png" alt="add-pull-request-review.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&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;/A&gt;&amp;nbsp;article to import the automation&lt;/P&gt;
&lt;H3 id="toc-hId-1993621442"&gt;Related Content&amp;nbsp;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&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;/LI&gt;
&lt;LI&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;/LI&gt;
&lt;LI&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;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/How-to-use-the-Save-App-block-in-Qlik-Application-Automation/ta-p/1889129" target="_blank" rel="noopener"&gt;How to use the Save App block in Qlik Application Automation&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Tue, 25 Apr 2023 11:54:36 GMT</pubDate>
    <dc:creator>AfeefaTk</dc:creator>
    <dc:date>2023-04-25T11:54:36Z</dc:date>
    <item>
      <title>Qlik Application Automation:Verify load script in Qlik Sense app from new GitHub pull request</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Verify-load-script-in-Qlik-Sense-app/ta-p/1955548</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This article gives an overview of verifying the load script of the Qlik Sense app from new Github pull request 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;You can make use of the template which is already available in the template picker&lt;/P&gt;
&lt;P&gt;You can find it by navigating to Add new -&amp;gt; New automation -&amp;gt; Search templates and search for 'Verify load script in Qlik Sense app from new GitHub pull request' in the search bar and click on the Use template option in order to use it in the automation&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="verify-load-script-template.png" style="width: 519px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87380iC61B3BE6EBBED63B/image-dimensions/519x276?v=v2" width="519" height="276" role="button" title="verify-load-script-template.png" alt="verify-load-script-template.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;H3 id="toc-hId-1313563072"&gt;Environment&lt;/H3&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;Steps:&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 "Verify-Qlik-Sense-app-load-script-from-new-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: 452px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/84136i7BDF49F18AC18F0D/image-dimensions/452x273?v=v2" width="452" height="273" 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;Add a condition block to check whether the new pull request was opened and stop automation if the pull request was not opened. You can change the condition to use other actions from the pull request (like 'synchronize').&amp;nbsp;Or use the 'Add condition' option for multiple actions.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="condition-block-pull-request-opened.png" style="width: 470px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85211iEB8A2E59F5E756B3/image-dimensions/470x207?v=v2" width="470" height="207" role="button" title="condition-block-pull-request-opened.png" alt="condition-block-pull-request-opened.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Get the load script from the file using the 'Get File Content' block. In this example, there's only one file so the first file from the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;List Pull Request Files&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;block is used. If you have multiple files, use the&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Lookup Item In List&lt;/STRONG&gt;&lt;SPAN&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.png" style="width: 473px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85212i90F8FEA6B15B87E7/image-dimensions/473x233?v=v2" width="473" height="233" role="button" title="get-file-content.png" alt="get-file-content.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Create a new (temporary) app and set the load script from the pull request as this 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.&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: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105748i0DE560D68C720CC4/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;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Reload &amp;amp; delete the temporary app and evaluate the reload's outcome:
&lt;OL&gt;
&lt;LI&gt;If the reload is successful, alert your team via slack with a success message and use &lt;STRONG&gt;Add Pull Request Review&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;block to comment on the pull request that&lt;/SPAN&gt;&amp;nbsp;the load script test has succeeded&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reload-succeeded-condition-block.png" style="width: 455px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85214iB46F3E6A383B7852/image-dimensions/455x268?v=v2" width="455" height="268" role="button" title="reload-succeeded-condition-block.png" alt="reload-succeeded-condition-block.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;If the reload fails, alert your team via slack with a failure message and&amp;nbsp;&lt;/SPAN&gt;use &lt;STRONG&gt;Add Pull Request Review&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;block to request changes on the pull request&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add-pull-request-review.png" style="width: 473px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85217i79DA5D3C5A937B5E/image-dimensions/473x285?v=v2" width="473" height="285" role="button" title="add-pull-request-review.png" alt="add-pull-request-review.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&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;/A&gt;&amp;nbsp;article to import the automation&lt;/P&gt;
&lt;H3 id="toc-hId-1993621442"&gt;Related Content&amp;nbsp;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&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;/LI&gt;
&lt;LI&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;/LI&gt;
&lt;LI&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;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/How-to-use-the-Save-App-block-in-Qlik-Application-Automation/ta-p/1889129" target="_blank" rel="noopener"&gt;How to use the Save App block in Qlik Application Automation&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 25 Apr 2023 11:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Verify-load-script-in-Qlik-Sense-app/ta-p/1955548</guid>
      <dc:creator>AfeefaTk</dc:creator>
      <dc:date>2023-04-25T11:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Application Automation:Verify load script in Qlik Sense app from new GitHub pull request</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Verify-load-script-in-Qlik-Sense-app/tac-p/2024146#M8132</link>
      <description>&lt;P&gt;If I understand correctly, I should&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Configure the start block with my github repo/account information&lt;/LI&gt;
&lt;LI&gt;Ensure there is a valid github connector working&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Run the automation once in order to have the webhook configured on the GitHub side?&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;As far as I can tell, the webhook isn't getting created in GitHub. Certainly no pull requests are triggering the automation and I can't see an webhooks listed in the configuration of the repository in github.&lt;/P&gt;
&lt;P&gt;Any debugging tips you could help me with?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 07:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Verify-load-script-in-Qlik-Sense-app/tac-p/2024146#M8132</guid>
      <dc:creator>mattgow</dc:creator>
      <dc:date>2023-01-11T07:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Application Automation:Verify load script in Qlik Sense app from new GitHub pull request</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Verify-load-script-in-Qlik-Sense-app/tac-p/2024221#M8133</link>
      <description>&lt;P&gt;I can manually create a webhook on the repo via GitHub and then set up the Qlik side with a generic webhook start block... but it would be cool if I could figure out what I'm doing wrong with the official GitHub webhook start block.&lt;/P&gt;
&lt;P&gt;I am able to use the "list my repositories" block to confirm that the repo in question is available to me... so clearly some things work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 10:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Verify-load-script-in-Qlik-Sense-app/tac-p/2024221#M8133</guid>
      <dc:creator>mattgow</dc:creator>
      <dc:date>2023-01-11T10:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Application Automation:Verify load script in Qlik Sense app from new GitHub pull request</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Verify-load-script-in-Qlik-Sense-app/tac-p/2024649#M8150</link>
      <description>&lt;P&gt;Worked it out. I was putting the wrong "owner". The account being used to connect to Github is an owner of the repositories in question but when configuring the connector "owner" means the owner in the path to the repository i.e. github.com/&amp;lt;owner&amp;gt;/repository&lt;/P&gt;
&lt;P&gt;Fixed.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 01:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Verify-load-script-in-Qlik-Sense-app/tac-p/2024649#M8150</guid>
      <dc:creator>mattgow</dc:creator>
      <dc:date>2023-01-12T01:44:30Z</dc:date>
    </item>
  </channel>
</rss>

