{
"$id": "6568c7cb957338cbb5c5",
"name": "latest_new_messages",
"runtime": "dart-3.0",
"execute": [],
"events": ["databases.6562ce5dcb5c8d0b005e.collections.6562cf067d4ed0fc8b70.create"],
"schedule": "",
"timeout": 15,
"enabled": true,
"logging": true,
"entrypoint": "lib/main.dart",
"commands": "dart pub get",
"ignore": [
".packages",
".dart_tool"
],
"path": "functions/latest_new_messages"
}
some how databases.6562ce5dcb5c8d0b005e.collections.6562cf067d4ed0fc8b70.create
does not trigger the fuction but databases.*
WORKS. and databases.*.collections.*.update
does not
This event will listen to any collection with 6562cf067d4ed0fc8b70
ID creation.
To listen to documents creation within a collection, you'll need to add one more identifier
-databases.6562ce5dcb5c8d0b005e.collections.6562cf067d4ed0fc8b70.create
+databases.6562ce5dcb5c8d0b005e.collections.6562cf067d4ed0fc8b70.documents.*.create
This way you will listen to the documents.*.create
events and not for the collection
create one.
<:appwriteheart:782571497393750036>
how did u do this please tell!
Like so
ok thanks!
[SOLVED] On Creating a Document does not trigger Function.
Recommended threads
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...