Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Invalid query parameter value in MCS API

edited May 8, 2018 7:00AM in Digital Assistant & Mobile 2 comments

Summary

Invalid query parameter value in MCS API

Content

Hi,

 

I am calling rest connector from API.  Below is my code for calling rest connector.

 

service.get('/mobile/custom/BranchAPI/BranchList', function(req,res) {

var sdk = req.oracleMobile;

var statusCode = 200;

var optionsList= {};

optionsList.uri = "/mobile/connector/BranchConnector"+"/queryResults/?query=select id,branch_code,branch_name,branch_name_ara from ABC.Branch";

sdk.rest.get(optionsList,function(errConn, resConn,bodyConn){

if(errConn){

res.send(resConn.statusCode, errConn.message);

}else{

var bodyObject = JSON.parse(bodyConn);

//var currentObservation = bodyObject.items[0].rows;

var currentObservation = bodyObject;

res.send(statusCode, currentObservation);

}

})

});

 

When I test it, it trows error below.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!