dev7281480
Posts: 0
Joined: Wed Dec 17, 2014 12:49 pm

How to send collection data from appery db to another server like amazon or other

I want to take backup of every activity of my app to the appery database and that data also store in my another server database. Is there any example example or tutorial to build my logic.....

dev7281480
Posts: 0
Joined: Wed Dec 17, 2014 12:49 pm

How to send collection data from appery db to another server like amazon or other

I am trying it to write script on my server and try to call to apperyio server code script which is written bellow
is this correct way............

http://devcenter.appery.io/documentat...

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to send collection data from appery db to another server like amazon or other

Hi dev,

Yes you can implement needed server script. Which collect needed data from Appery.io DB and send it to your 3rd party web service.

Regards.

dev7281480
Posts: 0
Joined: Wed Dec 17, 2014 12:49 pm

How to send collection data from appery db to another server like amazon or other

I want to all data from database collection but problem is that using this

//
result = {};
result.retrievedObject = Collection.retrieveObject(DB_id, collectionName, id, null);
response.success(result);
//

I just get data of perticular object only,

I want all object data in response............

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to send collection data from appery db to another server like amazon or other

Hi Dev,

It's not good idea to get all items at once. Cause of there could be a lot of items.

I can suggest you to use some "frames" of data to return.

Also here is code that you need to use:

pre

//
result = {};
//result.retrievedObject = Collection.retrieveObject(DB_id, collectionName, id, null);

var params = {};
params.criteria = {};

result.retrievedObject = Collection.query(DB_id, collectionName, params);
response.success(result);
//

/pre

Please read more about "query" method here: http://devcenter.appery.io/documentat...

Regards.

Return to “Issues”