<?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: Bulk rename of task in script with API in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Bulk-rename-of-task-in-script-with-API/m-p/1802854#M14822</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/54230"&gt;@simonaubert&lt;/a&gt;, yes you can do this kind of tasks using the QRS API, more info here:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Introduction.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Introduction.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But not from the Qlik Sense script, you have to use another platform like Javascript or Python.&lt;/P&gt;&lt;P&gt;JG&lt;/P&gt;</description>
    <pubDate>Mon, 26 Apr 2021 20:08:52 GMT</pubDate>
    <dc:creator>JuanGerardo</dc:creator>
    <dc:date>2021-04-26T20:08:52Z</dc:date>
    <item>
      <title>Bulk rename of task in script with API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Bulk-rename-of-task-in-script-with-API/m-p/1802840#M14821</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;I have to rename several hundreds of reload tasks. My first idea : an excel file with old and new name, a loop and an API Call to rename each task.&lt;BR /&gt;&lt;BR /&gt;I read &lt;A href="https://help.qlik.com/en-US/sense-developer/February2021/APIs/RepositoryServiceAPI/index.html" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/February2021/APIs/RepositoryServiceAPI/index.html&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;and wasn't able to find anything that would do the job.&lt;BR /&gt;&lt;BR /&gt;Did someone manage to do it?&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Simon&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 19:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Bulk-rename-of-task-in-script-with-API/m-p/1802840#M14821</guid>
      <dc:creator>simonaubert</dc:creator>
      <dc:date>2021-04-26T19:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk rename of task in script with API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Bulk-rename-of-task-in-script-with-API/m-p/1802854#M14822</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/54230"&gt;@simonaubert&lt;/a&gt;, yes you can do this kind of tasks using the QRS API, more info here:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Introduction.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Introduction.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But not from the Qlik Sense script, you have to use another platform like Javascript or Python.&lt;/P&gt;&lt;P&gt;JG&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 20:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Bulk-rename-of-task-in-script-with-API/m-p/1802854#M14822</guid>
      <dc:creator>JuanGerardo</dc:creator>
      <dc:date>2021-04-26T20:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk rename of task in script with API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Bulk-rename-of-task-in-script-with-API/m-p/1802861#M14823</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/90074"&gt;@JuanGerardo&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the answer. I already use the QRS API in script&amp;nbsp; to reload tasks from script &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;(for your information, I posted the detailed procedure here &lt;A href="https://community.qlik.com/t5/Integration-Extension-APIs/Reloading-task-from-script-authentication-with-saml-and-multi/td-p/1743623/page/2" target="_blank"&gt;https://community.qlik.com/t5/Integration-Extension-APIs/Reloading-task-from-script-authentication-with-saml-and-multi/td-p/1743623/page/2&lt;/A&gt; )&lt;BR /&gt;&lt;BR /&gt;I'm just struggling with the documentation, the first link I gave don't explain much and the help&amp;nbsp; is not that helpful &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;Maybe I will try that &lt;A href="https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Reload-Task-Update.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Reload-Task-Update.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Simon&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 20:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Bulk-rename-of-task-in-script-with-API/m-p/1802861#M14823</guid>
      <dc:creator>simonaubert</dc:creator>
      <dc:date>2021-04-26T20:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk rename of task in script with API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Bulk-rename-of-task-in-script-with-API/m-p/1802862#M14824</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/54230"&gt;@simonaubert&lt;/a&gt;, I was wrong, I thought you were using another API.&lt;/P&gt;&lt;P&gt;I have been using this QRS API with tasks to start, stop, check, etc. but not to update them. I think the endpoint you propose is the right one, but I agree with you that it is very difficult to be successful only with the documentation, you need lot of try and error...&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;JG&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 20:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Bulk-rename-of-task-in-script-with-API/m-p/1802862#M14824</guid>
      <dc:creator>JuanGerardo</dc:creator>
      <dc:date>2021-04-26T20:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk rename of task in script with API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Bulk-rename-of-task-in-script-with-API/m-p/1803015#M14826</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/54230"&gt;@simonaubert&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a simple PowerShell sample on how to perform that. The /qrs/task endpoint is mainly to start/stop tasks.&lt;BR /&gt;To update details about the details, you would need to use the /qrs/reloadtask endpoint.&lt;/P&gt;&lt;P&gt;The below simple shows the bare minimum arguments you need to get this working. You would just need to rewrite it in the programming language you want to use and add a loop statement to do it in bulk.&lt;/P&gt;&lt;P&gt;Note: "ModifiedDate" can be any date in the future, Qlik Sense will update it to the current date when the request has been processed. This argument is compulsory for PUT requests. If the date is missing or in the past, it will throw an error 409.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;$oldname='Reload License Monitor'
$newname = "My new name Test"
$hdrs = @{}
$hdrs.Add("X-Qlik-xrfkey","12345678qwertyui")
$hdrs.Add("X-Qlik-User","UserDirectory=DOMAIN;UserId=Administrator")
$cert = Get-ChildItem -Path "Cert:\CurrentUser\My\"   | Where {$_.Subject -like '*QlikClient*'}

#Fetch task id
$url = 'https://qlikserver1.domain.local:4242/qrs/reloadtask?xrfkey=12345678qwertyui&amp;amp;filter=name+eq+%27'+$oldname+'%27'
$resp = Invoke-RestMethod -Uri $url -Method Get -Headers $hdrs -Certificate $cert -ContentType 'application/json'

#Update task name
$url = 'https://qlikserver1.domain.local:4242/qrs/reloadtask/'+$resp.id+'?xrfkey=12345678qwertyui'
$body = '{"name":"'+$newname+'","modifiedDate":"2021-09-29T15:28:33.769Z"}'
Invoke-RestMethod -Uri $url -Method Put -Headers $hdrs -Certificate $cert -Body $body -ContentType 'application/json'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 09:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Bulk-rename-of-task-in-script-with-API/m-p/1803015#M14826</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-04-27T09:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk rename of task in script with API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Bulk-rename-of-task-in-script-with-API/m-p/1803202#M14827</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29425"&gt;@Damien_V&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;First of all, thanks a lot, that's cool. I tried it in the script but of course since it uses the PUT method, I can't make it work. So, let's go with Powershell &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Simon&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 15:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Bulk-rename-of-task-in-script-with-API/m-p/1803202#M14827</guid>
      <dc:creator>simonaubert</dc:creator>
      <dc:date>2021-04-27T15:30:17Z</dc:date>
    </item>
  </channel>
</rss>

