<?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 Sense QRS API: Create a task triggered after another task (PowerShell) in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-QRS-API-Create-a-task-triggered-after-another-task/ta-p/1713643</link>
    <description>&lt;P&gt;This is a sample to create a task triggered after another one with Qlik Sense Repository API.&lt;/P&gt;
&lt;BLOCKQUOTE class="quote"&gt;This example is provided as is. Further questions should be directed to the &lt;A href="https://community.qlik.com/t5/Integration-Extension-APIs/bd-p/qlik-sense-integration-extension-api" target="_blank" rel="noopener"&gt;Qlik Sense API and Integration forums&lt;/A&gt;&lt;/BLOCKQUOTE&gt;
&lt;H4&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Sample&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;PRE&gt;$body = '{     
  "task":
{"app": {      
  "id": "&lt;STRONG&gt;7c72cb1c-63de-4246-9e3b-55de2202f0bb&lt;/STRONG&gt;"    },  
  "name": "My New Task"    },  
   "compositeEvents": [ {         
       "timeConstraint":{   
       "days":0,                 
       "hours":0,                 
       "minutes":360,            
       "seconds":0    
},     
"compositeRules":[    {     
             "reloadTask":{       
              "id": "&lt;STRONG&gt;da5da832-82cc-4e09-bf6d-adb2f75c797c&lt;/STRONG&gt;"    
       },       
       "ruleState":1      
  }       ],  
  "name":"Trigger (successful) from depending Task",
  "enabled": true, 
  "eventType": 1     }]  
  }'
   $hdrs = @{}
   $hdrs.Add("X-Qlik-xrfkey","iX83QmNlvu87yyAB")
   $hdrs.Add("X-Qlik-User","UserDirectory=internal;UserId=sa_repository")
   $url = "https://qlikserver1.domain.local:4242/qrs/ReloadTask/create?xrfkey=iX83QmNlvu87yyAB"
   $cert = Get-ChildItem -Path "Cert:\CurrentUser\My" | Where {$_.Subject -like '*QlikClient*'}
   Invoke-RestMethod -Uri $url -Method Post -Body $body -ContentType 'application/json' -Headers $hdrs -Certificate $cert&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;In the above sample,&amp;nbsp;&lt;STRONG&gt;7c72cb1c-63de-4246-9e3b-55de2202f0bb&lt;/STRONG&gt; is the app ID of the app to reload, and&amp;nbsp;&lt;STRONG&gt;da5da832-82cc-4e09-bf6d-adb2f75c797c&lt;/STRONG&gt; is the task ID after which this reload task will be triggered.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 08:50:07 GMT</pubDate>
    <dc:creator>Damien_V</dc:creator>
    <dc:date>2023-04-25T08:50:07Z</dc:date>
    <item>
      <title>Qlik Sense QRS API: Create a task triggered after another task (PowerShell)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-QRS-API-Create-a-task-triggered-after-another-task/ta-p/1713643</link>
      <description>&lt;P&gt;This is a sample to create a task triggered after another one with Qlik Sense Repository API.&lt;/P&gt;
&lt;BLOCKQUOTE class="quote"&gt;This example is provided as is. Further questions should be directed to the &lt;A href="https://community.qlik.com/t5/Integration-Extension-APIs/bd-p/qlik-sense-integration-extension-api" target="_blank" rel="noopener"&gt;Qlik Sense API and Integration forums&lt;/A&gt;&lt;/BLOCKQUOTE&gt;
&lt;H4&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Sample&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H4&gt;
&lt;PRE&gt;$body = '{     
  "task":
{"app": {      
  "id": "&lt;STRONG&gt;7c72cb1c-63de-4246-9e3b-55de2202f0bb&lt;/STRONG&gt;"    },  
  "name": "My New Task"    },  
   "compositeEvents": [ {         
       "timeConstraint":{   
       "days":0,                 
       "hours":0,                 
       "minutes":360,            
       "seconds":0    
},     
"compositeRules":[    {     
             "reloadTask":{       
              "id": "&lt;STRONG&gt;da5da832-82cc-4e09-bf6d-adb2f75c797c&lt;/STRONG&gt;"    
       },       
       "ruleState":1      
  }       ],  
  "name":"Trigger (successful) from depending Task",
  "enabled": true, 
  "eventType": 1     }]  
  }'
   $hdrs = @{}
   $hdrs.Add("X-Qlik-xrfkey","iX83QmNlvu87yyAB")
   $hdrs.Add("X-Qlik-User","UserDirectory=internal;UserId=sa_repository")
   $url = "https://qlikserver1.domain.local:4242/qrs/ReloadTask/create?xrfkey=iX83QmNlvu87yyAB"
   $cert = Get-ChildItem -Path "Cert:\CurrentUser\My" | Where {$_.Subject -like '*QlikClient*'}
   Invoke-RestMethod -Uri $url -Method Post -Body $body -ContentType 'application/json' -Headers $hdrs -Certificate $cert&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;In the above sample,&amp;nbsp;&lt;STRONG&gt;7c72cb1c-63de-4246-9e3b-55de2202f0bb&lt;/STRONG&gt; is the app ID of the app to reload, and&amp;nbsp;&lt;STRONG&gt;da5da832-82cc-4e09-bf6d-adb2f75c797c&lt;/STRONG&gt; is the task ID after which this reload task will be triggered.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 08:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-QRS-API-Create-a-task-triggered-after-another-task/ta-p/1713643</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2023-04-25T08:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense QRS API: Create a task triggered after another task (PowerShell)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-QRS-API-Create-a-task-triggered-after-another-task/tac-p/1742941#M711</link>
      <description>&lt;P&gt;Thanks, just want I need it. !&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 18:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-QRS-API-Create-a-task-triggered-after-another-task/tac-p/1742941#M711</guid>
      <dc:creator>earbole</dc:creator>
      <dc:date>2020-09-10T18:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense QRS API: Create a task triggered after another task (PowerShell)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-QRS-API-Create-a-task-triggered-after-another-task/tac-p/2063602#M8987</link>
      <description>&lt;P&gt;Does it worked?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 10:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-QRS-API-Create-a-task-triggered-after-another-task/tac-p/2063602#M8987</guid>
      <dc:creator>sai_09</dc:creator>
      <dc:date>2023-04-24T10:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense QRS API: Create a task triggered after another task (PowerShell)</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-QRS-API-Create-a-task-triggered-after-another-task/tac-p/2064089#M9001</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109177"&gt;@sai_09&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can confirm that the methods in this article are still valid.&lt;/P&gt;
&lt;P&gt;If you require assistance implementing the example, I recommend posting in our&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Integration-Extension-APIs/bd-p/qlik-sense-integration-extension-api" target="_blank" rel="noopener"&gt;Qlik Sense API and Integration forums&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;All the best,&lt;BR /&gt;Sonja&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 08:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-QRS-API-Create-a-task-triggered-after-another-task/tac-p/2064089#M9001</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2023-04-25T08:51:10Z</dc:date>
    </item>
  </channel>
</rss>

