<?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>topic Re: Retrieve the Reload Task Id that triggered the Application reload via QRS. in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-the-Reload-Task-Id-that-triggered-the-Application/m-p/2062775#M18433</link>
    <description>&lt;P&gt;Something like this will return the "running" task associated with the App you are reloading.&lt;/P&gt;
&lt;P&gt;you will need the ReloadTask/Full api.&amp;nbsp; &lt;A href="https://help.qlik.com/en-US/sense-developer/February2023/APIs/RepositoryServiceAPI/index.html?page=473" target="_blank" rel="noopener"&gt;&lt;EM&gt;/qrs/reloadtask/full&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;called with a filter for the App and Operational Status&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filter=App.id eq &amp;lt;YourAppID&amp;gt; and operational.lastexecutionresult.status eq Running&lt;/P&gt;
&lt;P&gt;&lt;A href="https://&amp;lt;server&amp;gt;/qrs/reloadtask/full?filter=App.id%20eq%&amp;lt;AppID&amp;gt;%20and%20operational.lastexecutionresult.status%20eq%20Running" target="_blank" rel="noopener"&gt;https://&amp;lt;server&amp;gt;/qrs/reloadtask/full?filter=App.id%20eq%&amp;lt;AppID&amp;gt;%20and%20operational.lastexecutionresult.status%20eq%20Running&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;e.g.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://senseserver.domain.local/qrs/reloadtask/full?filter=App.id%20eq%00000000-0000-0000-0000-000000000000%20and%20operational.lastexecutionresult.status%20eq%Running" target="_blank"&gt;https://senseserver.domain.local/qrs/reloadtask/full?filter=App.id%20eq%00000000-0000-0000-0000-000000000000%20and%20operational.lastexecutionresult.status%20eq%Running&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;if you are calling this from within the Load Script of the running App, you can use the System Function DocumentName() to dynamically get the AppID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NB: If you are reloading from the Data Load editor you may need to handle a empty response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2023 00:38:55 GMT</pubDate>
    <dc:creator>Marc</dc:creator>
    <dc:date>2023-04-21T00:38:55Z</dc:date>
    <item>
      <title>Retrieve the Reload Task Id that triggered the Application reload via QRS.</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-the-Reload-Task-Id-that-triggered-the-Application/m-p/2062689#M18432</link>
      <description>&lt;P&gt;We have one application that is loading data from multiple databases. We set custom properties on the reload tasks to indicate the location of the database and the environment. We need to determine which reload task is running so that we can control the access to the appropriate databases.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;We have one Qlik Sense App 'Extract App' in the 'Dev Stream'.&lt;/P&gt;
&lt;P&gt;We have 3 scheduled Tasks each triggering the same 'Extract App' at different times. Each task has a custom property 'Customer Name'. The Task configuration looks like this:&lt;/P&gt;
&lt;P&gt;Task 1:&amp;nbsp; Execute daily&amp;nbsp;@12pm / Customer Name = 'Customer1' / Trigger App 'Extract App'&lt;/P&gt;
&lt;P&gt;Task 2:&amp;nbsp; Execute daily&amp;nbsp;@1pm / Customer Name = 'Customer2' / Trigger App 'Extract App'&lt;/P&gt;
&lt;P&gt;Task 3:&amp;nbsp; Execute daily&amp;nbsp;@2pm / Customer Name = 'Customer3' / Trigger App 'Extract App'&lt;/P&gt;
&lt;P&gt;When 'Extract App' is running, how can I determine which Task triggered the reload?&lt;/P&gt;
&lt;P&gt;Can anyone help us get this information via the QRS API?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 15:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-the-Reload-Task-Id-that-triggered-the-Application/m-p/2062689#M18432</guid>
      <dc:creator>dgonzalez1</dc:creator>
      <dc:date>2023-04-20T15:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the Reload Task Id that triggered the Application reload via QRS.</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-the-Reload-Task-Id-that-triggered-the-Application/m-p/2062775#M18433</link>
      <description>&lt;P&gt;Something like this will return the "running" task associated with the App you are reloading.&lt;/P&gt;
&lt;P&gt;you will need the ReloadTask/Full api.&amp;nbsp; &lt;A href="https://help.qlik.com/en-US/sense-developer/February2023/APIs/RepositoryServiceAPI/index.html?page=473" target="_blank" rel="noopener"&gt;&lt;EM&gt;/qrs/reloadtask/full&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;called with a filter for the App and Operational Status&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filter=App.id eq &amp;lt;YourAppID&amp;gt; and operational.lastexecutionresult.status eq Running&lt;/P&gt;
&lt;P&gt;&lt;A href="https://&amp;lt;server&amp;gt;/qrs/reloadtask/full?filter=App.id%20eq%&amp;lt;AppID&amp;gt;%20and%20operational.lastexecutionresult.status%20eq%20Running" target="_blank" rel="noopener"&gt;https://&amp;lt;server&amp;gt;/qrs/reloadtask/full?filter=App.id%20eq%&amp;lt;AppID&amp;gt;%20and%20operational.lastexecutionresult.status%20eq%20Running&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;e.g.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://senseserver.domain.local/qrs/reloadtask/full?filter=App.id%20eq%00000000-0000-0000-0000-000000000000%20and%20operational.lastexecutionresult.status%20eq%Running" target="_blank"&gt;https://senseserver.domain.local/qrs/reloadtask/full?filter=App.id%20eq%00000000-0000-0000-0000-000000000000%20and%20operational.lastexecutionresult.status%20eq%Running&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;if you are calling this from within the Load Script of the running App, you can use the System Function DocumentName() to dynamically get the AppID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NB: If you are reloading from the Data Load editor you may need to handle a empty response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 00:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Retrieve-the-Reload-Task-Id-that-triggered-the-Application/m-p/2062775#M18433</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2023-04-21T00:38:55Z</dc:date>
    </item>
  </channel>
</rss>

