Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

137
Visualizações
Filter response for trigger in Zapier CLI

I'm using Zapier Platform CLI and I'm having issues with firing the correct triggers.

I'm working with a legacy codebase. When you create a webhook, all events go to the URL you've provided. You can't subscribe to just one event.

With this in mind, I've created a RESTHook-style controller in our app. You can preform CRUD actions on webhooks, but you still get subscribed to every event. However, each event has it's name in the response, like so:

{ "event": "user.create", "id": 0, // ... }

In short, here's what I'm wondering:

What is the preferred way to filter events so that each trigger only responds to the appropriate event? I wouldn't want the order.create trigger firing on user.update.

I've looked in the examples and the docs, but I couldn't find anything that touches on this. Any advice or links are appreciated!

Thank you!

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

David here, from the Zapier Platform team. Sorry for the slow circle here.

The easiest way to do this is in the perform function for your hook (there's an example here).

Your code would have something like

if (bundle.cleanedRequest.event !== 'order.create') {
  return [] // noop
}

// process hook into order
return [order]

Hope that clears it up. ​Let me know if you've got any other questions!

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda