https://prefect.io logo
Title
c

Carlos Cueto

01/29/2023, 1:48 PM
Hello. Since Prefect 1.0 had the ability to send Automations to a generic Webhook URL, we had an automation set up to a Microsoft Power Automate webhook that we had running. Prefect 2.0 does not have a generic Webhook URL action for Automations that I saw, so I went ahead and created my own by inheriting
AppriseNotificationBlock
. I went ahead and registered the custom block I created with the UI and created a block under my Blocks page with the webhook URL. When I
.load()
the block from local python client and call
.notify()
on it, it works perfectly. I thought it would work just the same if I add it as an Action on the Automations tab, but to my surprise, it fails every time. I see the failed events on the Events tab of the automation I set up. Is there a way to see what is causing the failure?
w

Will Raphaelson

01/30/2023, 2:54 AM
Hey Carlos, thanks for raising this. I’ll be looking into this with the team tomorrow.
c

Carlos Cueto

01/30/2023, 3:41 AM
Thank you. Appreciate it.
w

Will Raphaelson

01/30/2023, 3:55 PM
Hey Carlos - currently for security reasons we dont actually support custom block types in these action, including those that extend a base class we support. That said, we’re going to be adding in a generic webhook action in the next month, so that should solve your issue.
c

Carlos Cueto

01/30/2023, 3:56 PM
Perfect. Thank you for looking into it Will. Appreciate it. I’ll be looking forward for the generic webhook action. Appreciate the help.
w

Will Raphaelson

01/30/2023, 3:57 PM
You got it, thanks for raising the friction.