Hello all, I am following the instructions to run a script to edit multiple entries in a users table (firestore).
Tutorial: https://docs.retool.com/docs/firebase-integration
I keep on get the follow error even after I run the javascript code. **'document_id' and 'document_object' not defined **
Hmm this code should work as long as you do have pending updates in the table (Users) and as long as the query in your second screenshot is called updateDocument
Here are the next steps I'd recommend:
Run the JS query and check the debug console to see what values are being passed in to the update query via additional scope
2. Check the left panel to ensure that you have the expected values in the .recordUpdates property. It should look something like this (except with different data):
Hey @Tess thank you so much for your detailed explanation. I was able to select multiple entries and updated them even though {{document_id}} and {{document_object}} still appear in red. So in short it's working as expected! Thanks again!