Best answer

Possible to change account depending on webhook data?

  • 30 October 2020
  • 4 replies
  • 93 views

Userlevel 1

Hello all,

I would like to know if it is possible to change the account parameter depending on the data contained in a catched webhook.
I’m explaining myself: I would like to be able to add an event to a specific google calendar account depending on the data I’m catching in my webhook.

Here is the sketch: 

As you can see I am first catching a hook and then I would like to dynamically change the “Choose Account” section depending on the webhook data… 

Is there a solution to my problem? 

Thank you all! 

icon

Best answer by Troy Tessalone 30 October 2020, 16:41

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.

4 replies

Userlevel 7
Badge +14

NO, you cannot dynamically change a Zap app step Account.

YES, you can create separate Zaps and add a Filter step to ensure the desired Zap app step account is used.

 

Since you’re using a Webhook app as the trigger you’ll need to either adjust the setup of the app that’s sending the webhook to fire multiple webhooks.

Article: https://zapier.com/help/create/code-webhooks/trigger-zaps-from-webhooks#trigger-multiple-zaps-with-webhooks

Userlevel 1

NO, you cannot dynamically change a Zap app step Account.

YES, you can create separate Zaps and add a Filter step to ensure the desired Zap app step account is used.

 

Since you’re using a Webhook app as the trigger you’ll need to either adjust the setup of the app that’s sending the webhook to fire multiple webhooks.

Article: https://zapier.com/help/create/code-webhooks/trigger-zaps-from-webhooks#trigger-multiple-zaps-with-webhooks

Hi Troy thank you for your answer!


Since I have more than 70 accounts to handle and it tends to increase, it seems that this solution is not the good one… If I understand your answer I’ll have to create 70 different zap? Each one containing the good account.

Thank you

Userlevel 7
Badge +14

[ADVANCED] You can look into leveraging the GCal API: https://developers.google.com/calendar/v3/reference

Userlevel 1

For those interested this may be great to read this:

Unfortunately, it's not possible to dynamically update the G Cal account that's connected to a Zap. That's hardcoded - you can only select one option. But, you can copy the Zap as many times as you want to connect other accounts, then use a Filter step so each Zap only continues along specific parameters: https://zapier.com/help/create/customize/add-conditions-to-zaps-with-filters