Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
lgtsotrsdh
Creator
Creator

Rest Connector Query Returns No Values

Hi,

I have the following query that I'm using in QlikView to extract information like task IDs from NPrinting. It works in our existing system, but in the new one I just setup it returns no values. As far as I can tell the configuration is the same on both systems with the same versions of QlikView and NPrinting. Connection string seems to work fine. Anyone have any ideas on what's going on?

let vEndpoint=  '$(vNPrintingServer)'  & '/api/v1/' & '$(vObject)' ;
    
    Switch vObject
        CASE 'users'
        let vRESTFieldName='userName';
        let vObjectName = chr(39) & vObjectName & chr(39);
        CASE 'tasks'
        let vRESTFieldName='name';
        CASE 'tasks?type=import'
        let vRESTFieldName='name';
       Default
        let vRESTFieldName='name';
        let vObjectName = chr(39) & vObjectName & chr(39);
end Switch
 
CUSTOM CONNECT TO $(vAPIConnectionNameForGET);
 
RestConnectorMasterTable:
SQL SELECT 
"__KEY_data",
(SELECT 
"id",
            "$(vRESTFieldName)",
            "__FK_items"
FROM "items" FK "__FK_items")
FROM JSON (wrap off) "data" PK "__KEY_data"
with Connection (
    URL "$(vEndpoint)", 
HTTPHEADER "Cookie" "$(vCookie)",
QUERY "Limit" "10000"
);
Labels (1)
1 Solution

Accepted Solutions
lgtsotrsdh
Creator
Creator
Author

FYI, I just fixed this, but I'll leave the question here just in case anyone runs into something similar. The email address for the NPrinting Default User wasn't setup correctly.

View solution in original post

1 Reply
lgtsotrsdh
Creator
Creator
Author

FYI, I just fixed this, but I'll leave the question here just in case anyone runs into something similar. The email address for the NPrinting Default User wasn't setup correctly.