#Capturing Event Data in Functions Triggered by Account Delete Events

2 messages · Page 1 of 1 (latest)

nocturne pelican
#

Hello Beautiful People,

I'm working on a feature where I need to execute certain actions in a function when a user account is deleted. This function would ideally be triggered by the account deletion event in Appwrite.

My key question is: Does Appwrite pass any specific data (like userID or other identifiers) to the function when it is triggered by an account deletion event? If so, how can I capture and utilize this data within my function?

I'm specifically looking to understand:

  1. The nature of the data passed to the function on such an event.
  2. The method or syntax for accessing this data within the function.
    Any guidance, code snippets, or pointers to relevant documentation would be immensely helpful.

Thank you for your assistance!

nocturne pelican
#

Got the solution. The users id can be accessed through the request object passed by the event through JSON.stringify(req.body)