Skip to main content
Question

How do I set specific datatypes in Firestore documents via Zapier and update existing ones?

  • December 16, 2024
  • 1 reply
  • 9 views

Hi there,

I wanted to get an update on a feature request to allow setting a specific datatype on a field (ie. array or boolean) when creating Firestore documents via Zapier.  Currently all fields are strings.  

 

Also, could you share any updates on whether you can update an existing Firestore document.  Currently you can only create new.  

 

Thank you!

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7532 replies
  • December 17, 2024

Hi ​@Swati V, welcome to the Community! 🎉

I wanted to get an update on a feature request to allow setting a specific datatype on a field (ie. array or boolean) when creating Firestore documents via Zapier.  Currently all fields are strings.  

I did some digging and it sounds like you might be referring to the feature request that was discussed over here:

Which was for the ability to select a specific datatype for a Firebase / Firestore field. Unfortunately, that feature request was closed for now as the team are not pursuing it at this time but we’ll be sure to follow up in that other Community topic if anything changes on the status of the feature request. The only workaround I can think of would be to use an API Request action to specify the necessary data types when creating the document:

For now, the only way to get around this would likely be to use an API Request (Firebase / Firestore) action. It’s a bit more advanced since you’d need to reference Firebase / Firestore’s API documentation to set up the request correctly to create the document and set the datatypes, but we have a more general guide that you might find helpful: Set up an API request action.

Also, could you share any updates on whether you can update an existing Firestore document.  Currently you can only create new.  

You’re right, I don’t see an “Update Firestore Document” type of action available. So I’d suggest contacting our Support team to submit a new feature request for that type of action to be added. You can do that here: https://zapier.com/app/get-help

In the meantime, you could potentially use another API Request action to update the document. Not an ideal solution I know, but if you run into any issues in setting up those API Request actions just let me know and I’ll be happy to lend a hand! 🙂