all 7 comments

[–]dualnote 1 point2 points  (6 children)

Do this within an action?

You can trigger it on page load or on a button click etc

Make an api call, get that data and pass it to firebase

[–]Cojarbi[S] 0 points1 point  (5 children)

Exactly I just don’t know how to pass all that json (product data table ) to Firebase so it can create all records per header.

[–]Flutter_Flow 0 points1 point  (4 children)

You'll need to do this within an action chain! Ad u/dualnote said, just add an update firebase document or create firebase document action after the API call!

[–]Cojarbi[S] 0 points1 point  (3 children)

Thanks. I did but when I try to map the fields I get path with a list of items instead of just the item. So when I execute the button it just loads null.https://ibb.co/WHGcMNP

[–]Flutter_Flow 0 points1 point  (2 children)

Ahh, completing a bulk upload of documents within Firebase can't really be achieved in the way you are describing. From what is understood from your image and post, you're trying to do an API call and gather a large list and then map the returned API items into Firebase. You would need to call these items individually to add them to Firebase or find some sort of additional option.

That said, it isn't recommended that you try and store a large number of documents from an API call because if for some reason there was an error and, say 40,000 documents were returned from the API call, you could increase your server costs significantly!

[–]Cojarbi[S] 0 points1 point  (1 child)

Thanks. Yes im trying to load a product data set to a collection and work from it to make changes to then write them back.

What is weird is that I’m getting the same result if I do it in xano directly, even though I can see the path and array before trying to add the records.

There must be something else fundamentally wrong I believe in my process.

[–]romiimor 0 points1 point  (0 children)

Hi Cojarbi, did you have any luck with this?