Based on the reference in the API Reference manual, found here: API Reference , I believe you need to call the 'Summary Data Table' to be returned.
When you call the
getUnderlyingDataAsyncmethods on a worksheet, Tableau Server returns a
Either "Underlying Data Table" or "Summary Data Table".
getData() array A two-dimensional array of data without the sheet or column metadata. The first array index is the row index and the second array index is the column index. getColumns() array<
The column information, including the name, data type, and index. getTotalRowCount() int The number of rows in the returned data. getIsSummaryData() bool Whether the data is summary data or underlying data. Returns true for summary data.
Hope this helps!
getSummaryDataAsync has the same permissions requirement as getUnderlyingDataAsync, which I need to disable for the user.
I'm interested in understanding the internals of getUnderlyingDataAsync, so I can identify the user's selection and send it to a separate service with the right permissions to get the associated data.
That is, how does getUnderlyingDataAsync know the user's selection? How can I get the selection?
getSelectedMarksAsync may be a solution, in that it gets the visible data, but not all of the columns in the data source. It may be able to be combined with an API to get the other values that getUnderlingDataAsync does.
Sorry for the delay in my reply. I am going to dig around some more to see if I can find some additional information on the use of the getUnderlyingDataAsync.