You may write a pre-hook cloud code script with your validating logic and integrate it with
Best posts made by JasonL
Latest posts made by JasonL
RE: getMessagesPage with $or field not working probably
Hi Kirlos, as you can see from the response's
messagefield, there are two elements (
name) underneath, you need to append
.idto specify the first search field for
id, so change the
"messsge.from.id"should solve this problem.
RE: Using numbers as JSON key.
Here is the thing, the input parameter
datareturned from our service proxy is a Java Map object, which does NOT support a number value as key when accessing value using object[key] syntax.
data = JSON.parse(JSON.stringify(data));
RE: Tournament Questions
(Post the answer from brainCloud chat channel)
Actually, there is a workaround that you can perform the tournament rewards adjustments,
- Turn off the auto claim
- Add a post-hook to Authenticate instead <- where auto-claim would normally run
- And in the post-hook look to see if they have tournament rewards, and if they do, claim them there - performing any award adjustments that need to be made.