<?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: QlikView NPrinting November 2019 Automate Import Task in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/QlikView-NPrinting-November-2019-Automate-Import-Task/m-p/1728954#M29520</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You are right, I could not get import tasks listed when executing GET call.&lt;/P&gt;&lt;P&gt;However what I tried was to execute task using POST method and instead of {id} I put id (I hardcoded it), which I derived from URL address when looking at Import task in management console and it all worked ok.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screenshots below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Import task in admin console" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37664iFE86362CD3DB134C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="Import task in admin console" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Import task in admin console&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik Sense script triggering that import" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37665i603939F3703E2E14/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="Qlik Sense script triggering that import" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Qlik Sense script triggering that import&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching also short video of execution which shows following obvious steps:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;loading NPrinting.qvs library which handles most of below calls&lt;/LI&gt;&lt;LI&gt;authentication to NPrinting to grab session Cookie (Call NP_Authenticate)&lt;/LI&gt;&lt;LI&gt;connecting to POST connection - hardcoded&lt;/LI&gt;&lt;LI&gt;triggering Import task - hardcoded&lt;/LI&gt;&lt;LI&gt;checking status of this task (Call NP_GetExecutions('TaskId')) and&amp;nbsp; (Call NP_GetExecutionDetails('TaskId'))&lt;/LI&gt;&lt;LI&gt;the above steps are ensuring that import is finished before next task can be triggered.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;NPrinting.qvs library is available on my blog:&amp;nbsp;&lt;A href="https://nprintingadventures.com/" target="_blank"&gt;https://nprintingadventures.com/&lt;/A&gt;&amp;nbsp;under this post:&amp;nbsp;&lt;A href="https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/" target="_blank"&gt;https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This library is my private project so use it at your own risk, but I think it can simplify a lot in task chaining using API.&lt;/P&gt;&lt;P&gt;hope this helps - cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2020 23:46:48 GMT</pubDate>
    <dc:creator>Lech_Miszkiewicz</dc:creator>
    <dc:date>2020-07-17T23:46:48Z</dc:date>
    <item>
      <title>QlikView NPrinting November 2019 Automate Import Task</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/QlikView-NPrinting-November-2019-Automate-Import-Task/m-p/1728727#M29506</link>
      <description>&lt;P&gt;Good Day&lt;/P&gt;&lt;P&gt;I have a "trigger" qvw which automates an NPrinting job, i.e. kicks off the generate recipients task and then kicks off the publish report task.&lt;/P&gt;&lt;P&gt;As the import task wasn't supported by the API this step remains a manual NPrinting trigger.&amp;nbsp; However, I would like to have this included in the automation.&lt;/P&gt;&lt;P&gt;I read that the June 2019 version of NPrinting supports import tasks on the API:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NPrinting June 2019&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;now officially supports import tasks. It has achieved this by extending support of the existing task API to included import tasks as well with the same endpoint. The following is an example of the endpoint to use for the public API:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;POST /api/v1/tasks/{taskid}/executions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I am not able to find any documentation related to this. Also when I get the task list using the API only publish tasks are included.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can anyone assist?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 08:14:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/QlikView-NPrinting-November-2019-Automate-Import-Task/m-p/1728727#M29506</guid>
      <dc:creator>dutoitan</dc:creator>
      <dc:date>2020-07-17T08:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView NPrinting November 2019 Automate Import Task</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/QlikView-NPrinting-November-2019-Automate-Import-Task/m-p/1728954#M29520</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You are right, I could not get import tasks listed when executing GET call.&lt;/P&gt;&lt;P&gt;However what I tried was to execute task using POST method and instead of {id} I put id (I hardcoded it), which I derived from URL address when looking at Import task in management console and it all worked ok.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screenshots below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Import task in admin console" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37664iFE86362CD3DB134C/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="Import task in admin console" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Import task in admin console&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Qlik Sense script triggering that import" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37665i603939F3703E2E14/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="Qlik Sense script triggering that import" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Qlik Sense script triggering that import&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching also short video of execution which shows following obvious steps:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;loading NPrinting.qvs library which handles most of below calls&lt;/LI&gt;&lt;LI&gt;authentication to NPrinting to grab session Cookie (Call NP_Authenticate)&lt;/LI&gt;&lt;LI&gt;connecting to POST connection - hardcoded&lt;/LI&gt;&lt;LI&gt;triggering Import task - hardcoded&lt;/LI&gt;&lt;LI&gt;checking status of this task (Call NP_GetExecutions('TaskId')) and&amp;nbsp; (Call NP_GetExecutionDetails('TaskId'))&lt;/LI&gt;&lt;LI&gt;the above steps are ensuring that import is finished before next task can be triggered.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;NPrinting.qvs library is available on my blog:&amp;nbsp;&lt;A href="https://nprintingadventures.com/" target="_blank"&gt;https://nprintingadventures.com/&lt;/A&gt;&amp;nbsp;under this post:&amp;nbsp;&lt;A href="https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/" target="_blank"&gt;https://nprintingadventures.com/2019/04/08/nprinting-api-qlik-rest-subroutines/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This library is my private project so use it at your own risk, but I think it can simplify a lot in task chaining using API.&lt;/P&gt;&lt;P&gt;hope this helps - cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 23:46:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/QlikView-NPrinting-November-2019-Automate-Import-Task/m-p/1728954#M29520</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-07-17T23:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView NPrinting November 2019 Automate Import Task</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/QlikView-NPrinting-November-2019-Automate-Import-Task/m-p/1728957#M29521</link>
      <description>&lt;P&gt;by the way... The only official documentation regarding API is on &lt;A href="https://help.qlik.com" target="_blank"&gt;https://help.qlik.com&lt;/A&gt;. The latest is:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/June2020/Content/NPrinting/Extending/NPrinting-APIs-Reference-Redirect.htm" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/June2020/Content/NPrinting/Extending/NPrinting-APIs-Reference-Redirect.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;however it does not mention anything on how to programatically obtain import task id.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 23:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/QlikView-NPrinting-November-2019-Automate-Import-Task/m-p/1728957#M29521</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-07-17T23:49:17Z</dc:date>
    </item>
  </channel>
</rss>

