Skip to main content
Best answer

writing a boolean value to Firebase

  • February 27, 2020
  • 6 replies
  • 2325 views

Hi! I'm new to Zapier but very excited about the possibilities!

I'm doing a Zap where I'm taking data from a Google form and using it to write data to Firebase. Everything works fine with just one problem -- Zapier is writing by boolean value as a string. I want false instead of "false".

Is there a way to tell Zapier to create a bool instead of a string?

Many thanks for your help.





Best answer by DanversBest answer by Danvers

Thanks for the heads up @AndrewJDavison_Luhhu!

I dug into this and I can see that there's currently a feature request open for this issue (converting all text to strings). @Buzzer I'm afraid that means that there's no way to achieve this right now, I'm sorry about that.

I've added your email address as another vote for this addition. I don't have an ETA of when or if this will happen, but we will definitely email you if it does become a reality. 


View original
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.

6 replies

AndrewJDavison_Luhhu
Forum|alt.badge.img+10

Hi




  • Author
  • Beginner
  • 2 replies
  • February 28, 2020

Screen Shot 2020-02-28 at 1.16.14 PM.pngI'm grabbing 3 fields from the form, and that works just fine. I also need to populate a field called "activated". It always starts out false. I'm hoping that there is some syntax to let Zapier know that I intend to send a bool instead of a string.

Thanks for any assistance!



AndrewJDavison_Luhhu
Forum|alt.badge.img+10

@Buzzer

Can you change 'false' to '0' and give it another try.

In computer notation 0 represents false and 1 represents true, and this might be what Firebase is looking for.



  • Author
  • Beginner
  • 2 replies
  • February 29, 2020

Thanks for the idea, but sending 0 to Firebase just records a value of 0 as an integer. Firebase doesn't have defined fields. It's all JSON. What I need is the ability to write false to the database but without the quotes. Zapier is writing "false". I need just false.



AndrewJDavison_Luhhu
Forum|alt.badge.img+10

I'm out of ideas here @Buzzer so I'm going to flag this to the Zapier Community Team. They might have some insight on this, and can escalate to the support team if needed.

Sit tight, and someone will contact you.



Danvers
Forum|alt.badge.img+12
  • Zapier Staff
  • 3731 replies
  • Answer
  • March 2, 2020

Thanks for the heads up @AndrewJDavison_Luhhu!

I dug into this and I can see that there's currently a feature request open for this issue (converting all text to strings). @Buzzer I'm afraid that means that there's no way to achieve this right now, I'm sorry about that.

I've added your email address as another vote for this addition. I don't have an ETA of when or if this will happen, but we will definitely email you if it does become a reality.