How to use bulkCreate,bulkUpdate,bulkDelete etc

Posted by Rollbase User on 16-Jul-2013 22:37

Hi Sir, How can I use the bulkCreate, bulkUpdate, BulkDelete etc functionality of RB? There's no clear example on the documentation regarding this feature. Thanks

All Replies

Posted by Admin on 18-Jul-2013 11:09

Hi Brian,



In order to perform SOAP bulk requests, create import map in Rollbase and obtain the import map ID value from the Object definition View page



Sample code



URL url = new URL("https://www.rollbase.com/webapi/services/rpcrouter");

RpcrouterSoapBindingStub binding = (RpcrouterSoapBindingStub) new IWebServicesServiceLocator().getrpcrouter(url);

binding.setTimeout(60000);

String sessionId = binding.login("username", "password");

String csvString = "ID,Name,Date\n906732,test1,'06/03/2013'\n906730,test2,'06/04/2013'\n906731,test3,'06/05/2013'";

String res = binding.bulkCreate(sessionId, mapID, synch, csvString);

binding.logout(sessionId);



To perform REST bulk requests, call the login REST API and obtain session ID.

Call http://www.rollbase.com/rest/api/bulkCreate with sessionId, map ID, synch flag, csvString as the URL parameters



Similar steps are needed for the remaining bulk operations as well.



Please let me know if you have further questions.



Thank You,

Srikanth

Progress|

Posted by Admin on 21-Jul-2013 21:25

What is the max number of rows for bulk API?

Posted by Admin on 22-Jul-2013 14:07

Hi Brian,



We currently do not have any set limit to maximum number of rows that can be used with bulk API



Thank You,

Srikanth

Progress|Rollbase Product Support Team

Posted by Admin on 31-Jul-2013 03:19

Hi Can you give me an example of Request body for rest API bulkCreate

Posted by Admin on 31-Jul-2013 04:35

Please give me an example version for REST API. Thanks

This thread is closed