Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
Flow in Oracle MCS API Call — Cloud Customer Connect
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

Flow in Oracle MCS API Call

Received Response
edited Aug 30, 2017 7:00AM in Digital Assistant and Mobile 1 comment


Flow in Oracle MCS API Call



Using the below code i am trying to achieve the following.

in my GetContactIdFromDeviceId - i want to get the values then the call should  be returned back to the calling method.

i need the return of dbUtility.GetContactIdFromDeviceId to be an object which i can then send as part of


service.get('/mobile/custom/Fake/login', function (req, res) {        var finalResponse;        var connector = constants.CONNECTOR_API_LOGIN_URI;        if (0 > versionNumberIndex) {            //Something        } else {            var handler = function (error, response, body) {                if (error) {                    if ('message' in error) {                        errorMsg = error.message;                        res.send(500, errorMsg);                        res.end();                    } else {                        //Something                } else {                    if (response.statusCode !== 200) {                        //Something                    } else if (response.statusCode == 401) {                        //Something                    } else {                        var bodyObj = JSON.parse(body);                        bodyObj.deviceId = "Device-ASASASAS";                        var getContactIdFromDeviceId = dbUtility.GetContactIdFromDeviceId(req,bodyObj.deviceId);                        res.status(200).send(bodyObj);                        res.end();                    }                }            };  , handler);        }    });

Howdy, Stranger!

Log In

To view full details, sign in.


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