Hi all, requesting for parameters that can be captured from appwrite server when working with APPWRITE_FUNCTION_EVENT_DATA on client side. Possibly can also assist with document that show structure and content of APPWRITE_FUNCTION_EVENT_DATA.
APPWRITE_FUNCTION_EVENT_DATA or req.payload contains the data being sent to the function.
The value is string.
So when you send it you should stringify it, and parse it
Client
await functions.createExeuctions('',JSON.stringify({}));
Function
try {
const data = JSON.parse(req.payload);
// This is just like the above row
const data = JSON.parse(req.variables['APPWRITE_FUNCTION_EVENT_DATA']);
} catch (e) {
// Data is not json parsable.
}
thank you
thank you
[SOLVED] How to use APPWRITE_FUNCTION_EVENT_DATA?
Recommended threads
- education plan not activated
Hi I have an edu id 13103046@iubat.edu but when I am trying to claim my plan and trying to logging with github where education student plan active. the appwrite...
- 500 simultaneous OAuth logins from the s...
Hi, I'd like to ask about rate limiting around Google OAuth login on Appwrite Cloud. **OVERVIEW** Service type: A PWA (web app) for members of a university clu...
- Suspicious access pattern detected when ...
Hello, I am having trouble restoring my project. In the past it worked with no problems, but today I get an error "Suspicious access pattern detected". How can ...