As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Inserting data with Kinvey metadata during custom endpoint BL
D
Dave Ackerman
started a topic
over 9 years ago
Hey there,
In our app we're doing several .insert()'s from modules.collectionAccess. We noticed when we insert the data this way, versus doing it from the client with a DataStore.save(), the Kinvey metadata doesn't get inserted. I think this is expected.
I found this documentation about adding it to the object before inserting:
It works, but what's the best practice way to for example, get the "creator" metadata passed in properly? I've done this, and it works, but I'm not sure if there's a better way.
Dave Ackerman
In our app we're doing several .insert()'s from modules.collectionAccess. We noticed when we insert the data this way, versus doing it from the client with a DataStore.save(), the Kinvey metadata doesn't get inserted. I think this is expected.
I found this documentation about adding it to the object before inserting:
http://devcenter.kinvey.com/angular/reference/business-logic/reference.html#kinveyEntity
It works, but what's the best practice way to for example, get the "creator" metadata passed in properly? I've done this, and it works, but I'm not sure if there's a better way.
https://gist.github.com/dmackerman/e24072d29764e53292b2
Thanks!