The latest version for DAS is WSO2 Data Analytics Server 3.1.0. View documentation for the latest release.
WSO2 Data Analytics Server is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.

All docs This doc
Skip to end of metadata
Go to start of metadata



getWithKeyValues(recordInfo, success, error)


Returns all the records in a table which match the given primary key value combinations.

OutputA JSON String array containing the table names in the ‘message’ element within the argument of the success callback.


var recordInfo = {
      	tableName : "TEST", // table being accessed
      	valueBatches : [
          	{	//key value pairs of the first batch
           		column1 : "value1",
           		column2 : "value2"
          	{	//key value pairs of the second batch
          		column1 : "anotherValue1",
          		column2 : "anotherValue2"
      	columns : [ "column1"] //interested columns, if null, return all the columns

client.getWithKeyValues(recordInfo, function(data) {
      console.log (data["message"]);
}, function(error) {
      console.log("error occured: " + error);  

Sample output

  • No labels