I want to be able to change a value in user data if that user does not make any purchases last 7 days. Is there any way to handle this with the existing Playfab system?
I got it working by using the CloudScripts. This is my workaround.
- Created a Rule which is getting fired when there is a receipt validation event happens. If receipt validation is valid then the Rule runs a cloud script which updates player data with the date and the value that I want to set.
Thanks for your recommendation as well. Appreciated for your time.
It will have to be done manually in the code. You can go ahead with the following approach.
Get the Player Inventory Items and sort them based on PurchaseDate and then after sorting check the last item in the list(After sorting the last item will be the last purchased item). Using this last purchased item you can check if the user has made any purchases in last 7 days
2 People are following this question.