• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Firebase - Query Document. Help!

Status
Not open for further replies.

pulboron

Member
Your Task History ID
IjU3NjMwNTY4MDYzMzA0M2M1MjZkNTUzMjUxM2I1MTY1NTQzNiI_3D_pc
Hello, I'm trying to make the Query Document functionality for firebase work. However, I keep on getting this error message:

[{"error":{"code":400,"message":"Invalid JSON payload received. Unknown name \"\": Root element must be a message.","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com\/google.rpc.BadRequest","fieldViolations":[{"description":"Invalid JSON payload received. Unknown name \"\": Root element must be a message."}]}]}}]

Basically, I have a collection called "Orders" and I want to query the Document IDs given an Order ID and a Order Line ID. If written as SQL, it will be like this:

SELECT DOCUMENT_ID
FROM Orders
WHERE OrderID = '12345' and OrderLineID = '23456'


Can anyone help me make it work?

1709510212819.png
 

ArshilAhmad

Moderator
Staff member
Hi @pulboron,

Could you please make a short screen recording elaborating a bit more on your use case? This will allow us to gain a better understanding of your concern.
 

pulboron

Member
Here you go: screen recording link

Basically my use case is the following:
1. I get all Order Updates from WooCommerce
2. Once I get Order updates, I Query if that order exists in Firebase using 2 columns: OrderID and OrderLineID
3. If it does not exist, Create new document/record in Firebase
4. If it exists, update the existing record in Firebase
 
P

Pabblymember11

Guest
Here you go: screen recording link

Basically my use case is the following:
1. I get all Order Updates from WooCommerce
2. Once I get Order updates, I Query if that order exists in Firebase using 2 columns: OrderID and OrderLineID
3. If it does not exist, Create new document/record in Firebase
4. If it exists, update the existing record in Firebase
Kindly try using the Get document action step once and pass all the parameters mentioned in the Document Path then we pass the routers' conditions accordingly.

1709540425630.png
 
Status
Not open for further replies.
Top