Rollbase and oData

Posted by balcesme on 21-Jan-2015 09:23

Is it possible to interface with a oData service from Rollbase? anybody experiences with this? 

All Replies

Posted by pvorobie on 21-Jan-2015 11:04

We don't have built in support for oData, but we have powerful server-side API to construct various HTTP requests.

Posted by Godfrey Sorita on 21-Jan-2015 11:56

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

Posted by Sumit Sarkar on 21-Jan-2015 12:00

@balcesme - out of curiosity, is there a specific OData feed you're trying to consume from Rollbase?

Posted by mobiletest on 21-Jan-2015 12:39

Ok thanks all! I was curious whether it is possible or not.

Posted by Ricardo Rafols on 21-Jan-2015 12:45

You can use rbv_api.sendHttpGet(“http://services.odata.org/v4/TripPinServiceRW/People) as well.
 
 
[collapse]
From: mobiletest [mailto:bounce-mobiletest@community.progress.com]
Sent: Wednesday, January 21, 2015 1:41 PM
To: TU.Rollbase@community.progress.com
Subject: RE: [Technical Users - Rollbase] Rollbase and oData
 
Reply by mobiletest

Ok thanks all! I was curious whether it is possible or not.

Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]

This thread is closed