Best answer

Webhook data reference to update firebase document

  • 28 February 2024
  • 9 replies
  • 30 views

I can retrieve webhook data (trigger) and create a new Firebase document (action). But can anyone explain to me how to pass this document info to be used?

Example how do I know what is the document id that Zapier creates?
If I want to update the latest document immediately from a webhook trigger, how is that new document referenced?

Many thanks!

icon

Best answer by Troy Tessalone 28 February 2024, 18:02

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

9 replies

Userlevel 7
Badge +14

Hi @madamadmin 

Each action step has a request and a response.

The response from the app being used in the Zap step should include an ID variable.

Check the DATA OUT from the Zap action step.

 

Help article about sending files in Zaps: https://zapier.com/help/create/basics/send-files-in-zaps

Hi sorry for asking, where is the data out info supposed to be?.. when i click on the action Zap it just shows the side panel with the parameters I setup the action with. The data field are defined by me.

Btw the link you provided is for sending files in zaps...don’t think its related to the current topic.

Thanks for the feedback! MA

Userlevel 7
Badge +14

@madamadmin 

After you test a Zap step it shows the data that was returned.

@madamadmin

After you test a Zap step it shows the data that was returned.

Hi Troy yes, but how do I access the data returned by a Zap? The trigger is a webhook tied to a Stripe webhook that will return data and create a new Firebase document from the data I tested and selected.

So for example 5 transactions happen which are detected by Zap webhooks, and I need these information (E.g document id of newly created Firebase documents), where do I go to see or access this info?

Userlevel 7
Badge +14

@madamadmin 

To help us have full context, post screenshots with how your Zap steps are outlined and configured.

 

Examples

DATA OUT (returned) from step 1 can be mapped to following Zap steps (2+)

DATA OUT (returned) from step 2 can be mapped to following Zap steps (3+)

and so on

Userlevel 7
Badge +14

@madamadmin 

You can view the Zap Runs history details to see the DATA IN/OUT for each step: https://zapier.com/app/history/

@madamadmin

You can view the Zap Runs history details to see the DATA IN/OUT for each step: https://zapier.com/app/history/

TQ Troy making some progress here. So the Data Out tab shows the newly created Firebase document (ID after the /payments/), so how do I access this Data Output in another Zap action? Do I use the AI to create a custom action or is there an existing command? Many thanks you are the best!

Userlevel 7
Badge +14

@madamadmin 

In your Zap steps, after you TEST Step 3, it will return the same data you see in the Zap Run history for Step 3 DATA OUT.

You can map DATA OUT from Step 3 to DATA IN for following Zap steps.

Userlevel 7
Badge +14

@madamadmin 

Help article about how to configure Zap actions: https://zapier.com/help/create/basics/set-up-your-zap-action

You can map dynamic variables between Zap steps using the ‘CUSTOM’ tab on input fields.