I am trying to get all the records of salesforce wave analytics dataset object but i don't want to user GET API available for it. Is there any other way to retrieve all datasets other than regular GET API?
3 Answers
If you take a close look at the documentation, the supported methods are listed.
Dataset Resource
HTTP Methods:
GET
You can check the Wave REST API Reference Resources overview here
-
So how can i get all datasets with its fields/records and their values using a single call?– ShreeyaMay 12, 2017 at 5:24
Analytics allows exporting data. Please refer this link: https://help.salesforce.com/articleView?id=bi_setup_download_enable.htm&type=5
There is a ConnectAPI available that allows you to query datasets. It would work something like this. It returns a JSON with the results that needs to be processed.
String query = Wave.QueryBuilder.loadByDeveloperName(datasetName).foreach(fields).build('q');
ConnectApi.LiteralJson result = ConnectApi.Wave.executeQuery(query );