Back

I want to Store DocumentId into Document Field

  • 0
  • Flutter
Nikunj Panchal 🌿
23 May, 2023, 10:22
TL;DR
The user wants to store the DocumentId in a Document Field. There are two possible solutions mentioned: generating a custom ID and using it in both the document field and ID, or creating the document, retrieving the latest document created, and obtaining the ID from there.
Nikunj Panchal 🌿
23 May, 2023, 10:23

I want to Store DocumentId into Document Field

D5
23 May, 2023, 10:28

You can generate a custom ID (badically random numbers and letters) and use it in a field in the document and at the same time in the document ID. Another approach is creating the document, getting the latest document you've created and getting from there the ID

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more