My function is triggering (users.*.create) whenever a new user is created. Is there any way to get new user data(such as email, userId etc) inside that function?
TL;DR
Solution: The payload from the event can be accessed using the `APPWRITE_FUNCTION_EVENT_DATA` variable. You can check the documentation for more information on function variables. In your case, if you want to get new user data such as email and userId when a new user is created, you can access this information inside your function using `APPWRITE_FUNCTION_EVENT_DATA`.Yes.
Please tell how
It will be inside the APPWRITE_FUNCTION_EVENT_DATA
You can check about variables more here: https://appwrite.io/docs/functions#functionVariables
Thank You Very Much!!😆
<:appwriteupvote:899677724615016528>
[SOLVED] Getting payload from event
Recommended threads
- Functions not executing after usage rese...
Hi team, Last month my project hit 100% usage and functions stopped working (expected). Now the new month has started and usage has reset, requests are going ...
- Functions never end and always fail (sta...
Hi ! I'm using Appwrite Cloud Pro and function execution from appwrite website is KO. Deploying starter function template, execution is always Failed and the ...
- Provider error when creating a function ...