by the way, is there any way to get the userId instead of username ?
Best Answer
D
Damien Bell
said
over 5 years ago
Yonghui,
RequestContext is invoked differently. The documentation for it is over here: http://devcenter.kinvey.com/rest/reference/business-logic/reference.html#requestcontext-module
Thanks,
1 Comment
Damien Bell
said
over 5 years ago
Answer
Yonghui,
RequestContext is invoked differently. The documentation for it is over here: http://devcenter.kinvey.com/rest/reference/business-logic/reference.html#requestcontext-module
Yonghui Xiao
When writing BL code onPreFetch(), I found request.username works fine, but request.requestContext is null?
This contradicts the reference:
http://devcenter.kinvey.com/rest/reference/business-logic/reference.html#request
by the way, is there any way to get the userId instead of username ?
Yonghui,
RequestContext is invoked differently. The documentation for it is over here: http://devcenter.kinvey.com/rest/reference/business-logic/reference.html#requestcontext-module
Thanks,
Damien Bell
Yonghui,
RequestContext is invoked differently. The documentation for it is over here: http://devcenter.kinvey.com/rest/reference/business-logic/reference.html#requestcontext-module
Thanks,
-
How do I access query string values for GET and DELETE requests?
-
Basic Authentication in Business Logic
-
How do I cascade delete entities from related collections?
-
All BL failing with Violation Error
-
How do I send push notifications?
-
Whenever I try to query by _id, I get zero results
-
receiving SOCKETTIMEDOUT when requesting external http response
-
Unique Constraints on a collection column?
-
Need some help with grouping
-
Accessing Endpoint from Collection Hook
See all 342 topics