Overview
Provides the following custom smart services and functions for handling data in Excel.
Key Features & Functionality
Smart Services included are:
Functions included are:
Hey all, we're on the latest version of the plugin (with Appian 19.1) and do not see correct results when utilizing queryAppian
*..when utilizing queryAppianLogs() with hasHeader=false. For instance:
queryAppianLogs( sqlStatement: "select * from login-audit", hasHeader: false)
returns a result set with the column name the same as the column value, not "COLUMN1,COLUMN2.." as defined. Is anyone else having this issue?
Hi,
Thanks for confirming - as far as I remember, I'd tried it both ways (i figured dictionary syntax wouldn't work but also didn't produce specific errors).
Also as a side note, Community doesn't seem to send any sort of notification of a reply here even though you had replied directly to me (this seems to hold true for any sort of comment activity within the App Market space).
So the first issue here is the syntax for calling the function. You cannot use keyword syntax when calling a plugin, you must use position syntax: docs.appian.com/.../Expressions.html
An example syntax would be queryAppianLogs("select * from login-audit",null,{"String", "String", "String","String","String","String"},null,false) to fill out the inputs for sqlStatement, subFolder, columnTypes, timestampFormat, and hasHeader respectively.
Testing using this syntax produces more expected results however passing false for hasHeader seems to skip the first row of data in the file so we will look into fixing that. In the meantime, the Log Reader plugin can also pull csv data.
Yes, I've reproduced this issue just now as well. It appears that the queryAppianLogs() function doesn't actually support all of the parameters that are listed. Maybe Sanchita Gupta or Michael Chirlin have some insight into this issue.