
Hello, people! I created a script to scrape a "notes" field on a collection, to fill some other fields. I ran this script after running another script to populate the collection. After running the second script, those documents having the proper information in the "notes" field, got the rest of fields completed (the ones that complete out of the "notes" information.). From now on, that script will be replaced with a function that triggers with every created document. The code of the bulk notes scrape script, ported to the functions specifications has been attached. However:
- It's necessary to catch the create document event response's document id. I'm lost at this.
- clean the code to update the newly created document, using the id document from the previous step as parameter on update_documents. Currently, it will process the whole collection, which it's not necessary anymore.
- Spot whatever pitfall that function code has. It's my first function attempt, so I expect to have overseen some things.
Thank you very much for your help
Oswald

There's a bug with 1.4.6 right now, but functions triggered by events should receive the event payload

It would be in req.body

Thank you, Steven! I'm gonna test it.
Recommended threads
- Bulk API upsert or Create documents func...
Hi , I keep getting “databases.upsertDocuments” or “createDocuments” function is not a valid appwrite function error . Following is a simple node.js code (modi...
- 301 Redirects on OAuth Endpoints Breakin...
Hello, **Project ID**: 6878bf3f003760131a6d **Custom Domain**: api.hustleproof.app **Problem**: New users are unable to sign up via Google OAuth on my custom ...
- Nameserver IPs
I try to set up the nameservers for Appwrite on EUServ, however Appwrite's nameservers both have the same IP. EUServ wants at least two different IPs for the na...
