Thomasallnice
Thomasallnice

Reputation: 11

Flutterflow: generating Id values

Using Flutterflow I want to auto generate an Id in when creating a firebase document. Here is an example:

create new document in collection "fruits".

name: "Apple"
fruitID: "yTMG0dDUGHDpyqjegU3i"
where the document reference is "/fruits/yTMG0dDUGHDpyqjegU3i"

My question is, what variable to set in the fruitID field to achieve this. Or ist there a function that can do that?

Thanks!

I tried to find a solution via a custom function, but I could not implement it in the document creation UI. Also there was no reference link available.

Upvotes: 1

Views: 720

Answers (2)

Emilie D
Emilie D

Reputation: 1

also, you have the option to create a custom-id via FF in firestore. Maybe it wasn't available at the time you wrote this question

Upvotes: 0

Emilie D
Emilie D

Reputation: 1

you can build a csv and import it and add an id field that you can use through FF, otherwise rowy does it quite nicely too

enter image description here

Upvotes: 0

Related Questions