How to write a new document of a Firebase Collection taking the given userId key(UID)


I think the best way to accomplish this is to simply edit the Login plugin so that it will fetch the NeighborhoodId from database and stores it to dataslot after succesful login. Any other solution would be pretty “hacky” and would not work on all cases.

P.S. If you’re trying to use the Screen state script for fetching data you need to have more than one state for the screen. Otherwise the script will never be executed.


I see. Let’s try this. Thanks


Btw. You can overwrite any existing document simply by setting the document name in Save data interaction. Set the document name with Document_key “column”.