alpha#trinity1Original post
Rank 2: Process
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.
Summary
The user had a question about using `APPWRITE_FUNCTION_EVENT_DATA`. The solution is to stringify and parse the data when sending it from the client to the function. Here's an example code snippet:
Client:
`await functions.createExeuctions('', JSON.stringify({}));`
Function:
```js
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.
}
```
The user also requested assistance with capturing parameters and a document showing the