Is it possible to interface with a oData service from Rollbase? anybody experiences with this?
We don't have built in support for oData, but we have powerful server-side API to construct various HTTP requests.
Hi Willem,
I was able to successfully get a response using the example on their website(http://www.odata.org/). Please use sendJSONRequest() in sending the requests.
You can test it by pasting the code below on an Object Script Trigger in Rollbase. Then select "Debug Formula" to check the response.
var url = "http://services.odata.org/v4/TripPinServiceRW/People"; var data = {"OData-Version":"4.0", "OData-MaxVersion":"4.0"}; var method = "GET"; var contentType = "application/json"; var resp = rbv_api.sendJSONRequest(url, data, method, contentType, null, null, null); rbv_api.println(resp);
Regards,
Godfrey
@balcesme - out of curiosity, is there a specific OData feed you're trying to consume from Rollbase?
Ok thanks all! I was curious whether it is possible or not.
Ok thanks all! I was curious whether it is possible or not.
Flag this post as spam/abuse.