Page 1 of 1

pushupdatedevice example?

Posted: Thu May 26, 2016 3:03 pm
by Andrew Peacock

Hi,
I'm trying to update a custom field in devices, but failing. Can you provide some examples of how to do this please, using pushupdatedevice service if possible?

Regards,
Andy


pushupdatedevice example?

Posted: Thu May 26, 2016 8:17 pm
by Galyna Abramovych

Hello Andrew,

Just to be sure I understand you, could you please elaborate on what custom fields you mean. Are these the extra rows and/or cols of the Appery.io predefined "Devices" collection?


pushupdatedevice example?

Posted: Fri May 27, 2016 11:45 am
by Andrew Peacock

Hi Galyna,
That's correct. I've added a column storing an string (actually, a JSON-formatted array of integers like this: [1,5,20,101], called "tag_ids". I'd like to update these, but can't figure out how to use the pushupdatedevice service to do this.
Regards,
Andy


pushupdatedevice example?

Posted: Fri May 27, 2016 5:28 pm
by Galyna Abramovych

Hello Andrew,

It's best to use Server Code for this.
Check out our example of how to access predefined collections here: https://devcenter.appery.io/documenta....
In case you need more help, please feel free to reach out to support!