<?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: NPrinting API in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893656#M35124</link>
    <description>&lt;P&gt;Whether I have to upgrade NPrinting or Rest API connector?&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Current version&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;NPrinting-Qlik NPrinting&amp;nbsp;June 2020 (&lt;SPAN class="ng-scope"&gt;Version: 20.19.3.0)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-scope"&gt;API-Version 2.103.0&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 10:39:25 GMT</pubDate>
    <dc:creator>sabari1910</dc:creator>
    <dc:date>2022-02-16T10:39:25Z</dc:date>
    <item>
      <title>NPrinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1892861#M35091</link>
      <description>&lt;P&gt;Dear Qlik Experts,&lt;/P&gt;
&lt;P&gt;I'm trying to get NPrinting Connections details using REST API but I unable to fetch connection metadata last reload (Last cache update) details.&lt;/P&gt;
&lt;P&gt;Can someone please help immediately on this.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;G.Sabarirajan&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 07:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1892861#M35091</guid>
      <dc:creator>sabari1910</dc:creator>
      <dc:date>2022-02-15T07:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1892879#M35092</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i have given you the exact script in my blog comments (not sure If you have seen this). If not got to&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;&amp;nbsp;download and configure script to read NPrinitng.qvs adn follow additional steps:&lt;/P&gt;
&lt;P&gt;So the process will be:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You need to get Authenticated. You can use for this my NPrinting.qvs
&lt;UL&gt;
&lt;LI&gt;Include NPrinting,qvs and call authentication&lt;/LI&gt;
&lt;LI&gt;&lt;LI-CODE lang="csharp"&gt;$(Must_Include='$(vConnection)\Script\NPrinting.qvs');
Call NP_Authenticate​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Then run below script and adjust variables accordingly for your NPrinting server and connection ID you want to check:
&lt;UL&gt;
&lt;LI&gt;&lt;LI-CODE lang="csharp"&gt;Let vConnectionStatusURL = 'https://$(vNPrintingServer):4993/api/v1/connections/$(vConnectionId)';

LIB CONNECT TO '$(vConnection_GET)';

RestConnectionStatusTable:
SQL SELECT
“id”,
“name”,
“description”,
“created”,
“lastUpdate”,
“appId”,
“source”,
“connectionString”,
“notificationsEnabled”,
“cacheStatus”,
“connectionStatus”
FROM
JSON (wrap off) "data"
WITH
CONNECTION( URL "$(vConnectionStatusURL)", HTTPHEADER "cookie" "$(vCookie)", QUERY "Limit" "$(vQueryLimit)")
;&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 07:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1892879#M35092</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2022-02-15T07:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1892908#M35093</link>
      <description>&lt;P&gt;by the way - please note that when you copy from community double quote characters "" are replaced with some other characters causing issues - make sure you update those characters so they are actual double quotes:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;those characters appear when copying my code from community to Qlik Sense&lt;/LI&gt;
&lt;LI&gt;the correct characters are shown above no 2&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lech_Miszkiewicz_0-1644913849188.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72280iC8D168C60C8B3FAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lech_Miszkiewicz_0-1644913849188.png" alt="Lech_Miszkiewicz_0-1644913849188.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 08:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1892908#M35093</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2022-02-15T08:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1892922#M35095</link>
      <description>&lt;P&gt;Attached below is modified and simplified code when using my NPrinting.qvs. You could simply put SUB&amp;nbsp;&amp;nbsp;NP_CheckConnectionStatus into my NPrinting.qvs and then just call&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Call NP_Authenticate&lt;BR /&gt;Call NP_GetAppID('Testing Only')&lt;BR /&gt;Call NP_CheckConnectionStatus('Testing Only')&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Otherwise you can have it like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; 		$(Must_Include='$(vConnection)\Script\NPrinting.qvs');

 		SUB NP_CheckConnectionStatus(vNPrintingConnectionName)
        
                //  Get Connections
                Call NP_GetConnections('$(vNPrintingConnectionName)')

                    FOR Each  vRowNo in FieldValueList('connection_row_no');  

                        //	Extracts the desired Connection ID
                
                        Let vConnectionId               = Peek('connection_id',$(vRowNo)-1,'connection_items');
                        Let vNPrintingConnectionName    = Peek('connection_name',$(vRowNo)-1,'connection_items');
                        //	Trace            
                        Trace 	---;
                        Trace 	Derived ConnectionId for Connection '$(vNPrintingConnectionName)' is '$(vConnectionId)';

                        //  Compose the URL for the GET call that checks the connection status

                        Let vConnectionStatusURL    = 'https://$(vNPrintingServer):4993/api/v1/connections/$(vConnectionId)';
                        Trace Connection Status URL: ;
                        Trace "$(vConnectionStatusURL)" ;

                        //  Check Connection Data
                    
                        LIB CONNECT TO '$(vConnection_GET)'; 
                                        
                        RestConnectionStatusTable:
                        SQL SELECT
                            "id",
                            "name",
                            "description",
                            "created",
                            "lastUpdate",
                            "appId",
                            "source",
                            "connectionString",
                            "notificationsEnabled",
                            "cacheStatus",
                            "connectionStatus"
                        FROM 
                            JSON (wrap off) "data"
                        WITH 
                            CONNECTION( URL "$(vConnectionStatusURL)", HTTPHEADER "cookie" "$(vCookie)", QUERY "Limit" "$(vQueryLimit)")
                        ;  
                        
                        ConnectionData:
                        LOAD	
                            [id],
                            [name],
                            [description],
                            [created],
                            LocalTime([lastUpdate],'Sydney') as LastUpdateLocal,
                            [lastUpdate],
                            [appId],
                            [source],
                            [connectionString],
                            [notificationsEnabled],
                            [cacheStatus],
                            [connectionStatus]
                        RESIDENT RestConnectionStatusTable;

						DROP TABLE RestConnectionStatusTable;
                        
                    Next
			EndSub
			
            Call NP_Authenticate
            Call NP_GetAppID('Testing Only')
            Call NP_CheckConnectionStatus('Testing Only')
            
        	exit script;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the result is:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lech_Miszkiewicz_1-1644914878117.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72282iD5707D88A576B00C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Lech_Miszkiewicz_1-1644914878117.png" alt="Lech_Miszkiewicz_1-1644914878117.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 08:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1892922#M35095</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2022-02-15T08:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1892999#M35096</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The API&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/June2020/APIs/NP+API/index.html?page=13" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/June2020/APIs/NP+API/index.html?page=13&lt;/A&gt;&amp;nbsp;returns also the&amp;nbsp;&lt;SPAN&gt;lastUpdate information of a connection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example this connection:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ruggero_Piccoli_0-1644921320556.png" style="width: 683px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72297i464A71839A9F2A3B/image-dimensions/683x41?v=v2" width="683" height="41" role="button" title="Ruggero_Piccoli_0-1644921320556.png" alt="Ruggero_Piccoli_0-1644921320556.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You run the GET and in the answer you will see that information:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ruggero_Piccoli_1-1644921474712.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72298i7B0E885FD9EA024E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ruggero_Piccoli_1-1644921474712.png" alt="Ruggero_Piccoli_1-1644921474712.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If this doesn't work in your installation please post more details about what you are doing and the errors you get.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 10:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1892999#M35096</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2022-02-15T10:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893040#M35097</link>
      <description>&lt;P&gt;Hi Ruggero,&lt;/P&gt;
&lt;P&gt;Please find the attachments. NPrinting Last cache update not showing correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 11:34:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893040#M35097</guid>
      <dc:creator>sabari1910</dc:creator>
      <dc:date>2022-02-15T11:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893045#M35098</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Ruggero,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;API NOT even showing year 2022 for any connections.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 11:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893045#M35098</guid>
      <dc:creator>sabari1910</dc:creator>
      <dc:date>2022-02-15T11:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893049#M35099</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is very strange, I'm not aware of similar issues. So I would like to suggest to upgrade to latest version (May 2021 SR3) and test with it. Be also 100% sure you are connecting POSTMan to the correct server and apps because it is very strange.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rugger&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 11:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893049#M35099</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2022-02-15T11:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893058#M35100</link>
      <description>&lt;P&gt;Thanks Rugger.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-link-navigation child-thread lia-link-disabled"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp; Any suggestions pls.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 12:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893058#M35100</guid>
      <dc:creator>sabari1910</dc:creator>
      <dc:date>2022-02-15T12:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893081#M35101</link>
      <description>&lt;P&gt;Agree wth&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48729"&gt;@Ruggero_Piccoli&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it works for me, so the only things i can think of is that you may be using older version or connecting to different server (unlikely)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 12:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893081#M35101</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2022-02-15T12:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893088#M35102</link>
      <description>&lt;P&gt;Just found created and Lastupdate are showing same date.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 12:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893088#M35102</guid>
      <dc:creator>sabari1910</dc:creator>
      <dc:date>2022-02-15T12:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893656#M35124</link>
      <description>&lt;P&gt;Whether I have to upgrade NPrinting or Rest API connector?&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Current version&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;NPrinting-Qlik NPrinting&amp;nbsp;June 2020 (&lt;SPAN class="ng-scope"&gt;Version: 20.19.3.0)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="ng-scope"&gt;API-Version 2.103.0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 10:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893656#M35124</guid>
      <dc:creator>sabari1910</dc:creator>
      <dc:date>2022-02-16T10:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting API</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893672#M35125</link>
      <description>&lt;P&gt;I would say NPrinting. Rest connector shouldn't play a role in what data gets retrieved&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 11:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-API/m-p/1893672#M35125</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2022-02-16T11:42:17Z</dc:date>
    </item>
  </channel>
</rss>

