Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

pushupdatedevice example?

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

Galyna Abramovych
Site Admin
Posts: 84
Joined: Tue Mar 22, 2016 6:03 pm

pushupdatedevice example?

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?

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

pushupdatedevice example?

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

Galyna Abramovych
Site Admin
Posts: 84
Joined: Tue Mar 22, 2016 6:03 pm

pushupdatedevice example?

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!

Return to “Issues”