• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

How to Handle Different Webhook Payloads

Status
Not open for further replies.

nicheweb

Member
We have some webhooks that we receive that have different fields and pieces of information and we don't have a way to change this. For example, one of our providers sends out all event notices to a single webhook and different types of events have different fields included.

This causes a problem because when we go to use a different response that has missing fields we have already mapped in the workflow, we get the error and can't really continue. What is the best way to get around this?

Ultimately I want to create a log of these different event types and put each event type on a spreadsheet tab and separate them out as each sheet will have different column headings.

Thanks!
 

Himesh

Active member
We have some webhooks that we receive that have different fields and pieces of information and we don't have a way to change this. For example, one of our providers sends out all event notices to a single webhook and different types of events have different fields included.

This causes a problem because when we go to use a different response that has missing fields we have already mapped in the workflow, we get the error and can't really continue. What is the best way to get around this?

Ultimately I want to create a log of these different event types and put each event type on a spreadsheet tab and separate them out as each sheet will have different column headings.

Thanks!
Hello @nicheweb ,
First you need to capture all the responses one by one and after that you can put router condition that if response comes from response-1 then it should go response-1 router condition.

If you are still not able to solve this on your own feel free to DM me and we can do a free zoom call. FYI I'm not from Pabbly Connect team, just a freelancer who helps other Pabbly users.
 

nicheweb

Member
Hello @nicheweb ,
First you need to capture all the responses one by one and after that you can put router condition that if response comes from response-1 then it should go response-1 router condition.

If you are still not able to solve this on your own feel free to DM me and we can do a free zoom call. FYI I'm not from Pabbly Connect team, just a freelancer who helps other Pabbly users.
Ok thanks, I understand and appreciate your help.
 

heyyou488

Member
I am having this exact same problem. The trigger app Webhook can only be sent to one URL. So when each event comes in to Pabbly, I need to route the events to different actions.
Example:
event.type = job.created needs to forward to Google Sheet
event.type=customer.created needs to forward to OpenPhone
etc....
 

ArshilAhmad

Moderator
Staff member
There can be two scenarios:

Scenario 1: When the label remains the same and only the value changes.

In this case, you can simply capture the data from the webhook in the trigger step and set up your route conditions accordingly. Check out the router conditions in this workflow.


Scenario 2: In case the label changes in the response received from your webhook, you’ll need to follow these steps: first, capture the initial payload and set up Route 1. Then, click on 'Re-Capture Webhook Response' to capture the second payload (with a different label) and set up Route 2. Repeat this process—clicking 'Re-Capture Webhook Response' to capture each new payload and setting up the corresponding routes accordingly.

Watch the video shared below (Here, I have captured the payload manually, but you will need to send the payload from your source application.):

 
Status
Not open for further replies.
Top