hi, if i have a function, and i need to pass the users id who executed it, how can i do that?
To pass the user ID of the person who executed the function, you need the APPWRITE_FUNCTION_USER_ID variable
const userId = res.variables['APPWRITE_FUNCTION_USER_ID']
This variable will automatically contain the user's ID who executed the function.
thank you! is there a documentation for other variables like this aswell?
Recommended threads
- Migration and Function glitch
I am trying to migrate from non pro appwrite project to pro appwrite project all my data but it's stuck in processing.
- Unable to signup to appwrite cloud
When attempting to create an online cloud account on appwrite.io, I get the following message : "This email address must already be in its canonical form. Pleas...
- Email address must be in its canonical f...
Hello, Recently I was trying to signup with my GitHub account with appwrite account for availing the student benifits but while trying to signup I saw such erro...