How to Transfer Data from App State List to Firestore Collection in FlutterFlow

Custom Code

Hello FlutterFlow Community,

I have created an app state of type list that contains a list of structs. These structs have fields related to a Firestore collection. My goal is to store this information temporarily and then transfer it to the Firestore collection by creating a document in Firebase.

Could someone guide me on how to achieve this in FlutterFlow? Specifically, I need help with the following:

  1. Transferring this data from the app state to a Firestore collection.

  2. Creating a new document in Firebase with the transferred data.

Any example code snippets or step-by-step instructions would be greatly appreciated.

please help as soon as possible.

Thank you!

What have you tried so far?

I've tried doing it directly by triggering action also tried using custom function still no luck so far.

Did you check FlutterFlow's Documentation for this topic?
Yes
3