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.
Business Logic: Invoking collection hook from custom endpoint
R
Ryan Henderson
started a topic
about 10 years ago
I am inserting a record from a business logic custom endpoint, but my collection hook (on every save) is not being invoked. How can I ensure that a collection hook is invoked when a record is inserted from a custom endpoint?
1 Comment
M
Michael
said
about 10 years ago
Hi Ryan,
This currently isn't possible. The collectionAccess module in business logic is meant to bypass the Kinvey API pipeline, and provide direct access to Mongo.
To implement what you are looking for, you would need to use the request module within business logic, and create a rest request to insert the data rather than use collectionAccess.
Ryan Henderson