Program Notification (Webhook)

Hello,

I am trying to implement Program Notifications using the Webhook recipient type. The notification should be sent to the webhook URL when an enrollment occurs for the Tracker Program.

I have followed the necessary steps in the Maintenance app to create the message template, specify the enrollment trigger, specify the webhook URL etc.

However, when I try to test this by creating an enrollment, no notification is sent to the webhook URL. No error logs are created, it just seems that nothing happens at all. I have tested other types of program notifications such as sending messages using the DHIS2 messaging feature and that works fine.

I have tried to create the webhook notification on a local DHIS2 instance using Docker, and also on the public play server, with no success on either.

Wondering if anyone can offer some advice on where I might be going wrong?

Thanks for any help

check or ask to these people : Configuring ProgramStage / Program Notifications Webhook - #2 by austin ?

Hi @cormac

Did the post shared by @Stephan_Mestach help?

I’ve loved to try and reproduce this on play but I’m suspecting that it could be an issue on the webhook’s end? Are you logging the requests received? If a request is sent using Postman, for instance, to this webhook, is the request logged?

How are you enrolling the TEIs?

Finally, what version of DHIS2 are you using? Any additional details that might help debug this?

Thanks!