Skip to main content
Question

Firebase/Firestore: Query Document by __name__ doesnt work

  • January 2, 2023
  • 1 reply
  • 342 views

I am trying create a query for specific Firestore Document by filtering for its generated ID like this: 
 

{
"where": {
"fieldFilter": {
"field": { "fieldPath": "__name__" },
"op": "EQUAL",
"value": { "stringValue": "{{177820683__Campaign ID}}" }
}
}
}

But everytime i try to run it i get this error message.

Error code 400: [{ "error": { "code": 400, "message": "__key__ filter value must be a Key", "status": "INVALID_ARGUMENT" } } ]

I looked through the whole documentation on Googles Site but cannot find a way to do that. For normal fields this works and I do not want to additional fields just for Zapier.

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

christina.d
Forum|alt.badge.img+9
  • Zapier Staff
  • January 3, 2023

Hey there, @JonathanGrafDigitalschaft! Thanks for reaching out in community. 

I hope you don’t mind, I’m gonna move your question over to our coding/webhooks forum. Some of our more technical users tend to hang there and hopefully that’ll help to get the right 👀’s on this for us. 

🙂