SENDMESSAGE PR Action does not work with Event programs

Hi @brian Same here …this function is not working. what is wrong with the step? I have completed seting up all step but I do not receive any notification




Hi @Saysana_SB

I refer you to this section of the answer here. Have you verified that your program rule is executing correctly?

  • Can you please confirm that your program rule is being executed? Depending on how you have configured the program rule variable, you may need to use the Option Code in your expression, instead of the option name. To check this, you can attach another program rule action to the rule, such as “Show Warning”.

If your program rule is executing correctly, please inform us to whom you are sending the program notifications (Part 3 above) and which version of DHIS2 you are using.

1 Like

Yes, the program rule is executing correctly and I also use the Code in the expression but it does not work. I am still not received any info regarding the data that user entered in DHIS2.

We are sending the program notification to the user group And we are using version 2.38

Anyway, could you please make a sort video on how to config it all step, much appreciated ?
I think I would miss understood at some point.

Please

Hi @Saysana_SB . I see from your example and the 2.38 Play server that this is an Event program. It looks like you have done everything needed to execute a program rule to send a message; if you add a Warning Box as a program rule action, this is shown in the Capture app when you meet the PR conditions.

I have also been able to reproduce this behavior myself with another event program. So this seems to be a bug as i reported [DHIS2-15538] - Jira

As a workaround, I recommend you try a program rule action to SCHEDULE MESSAGE instead of SEND MESSAGE. You can schedule the message to send on d2:addDays(V{current_date},1). Then go to Scheduler App, and create a Scheduled Job with type SEND SCHEDULED MESSAGE every morning at say 9AM. This would send your notifications on the following morning, instead of immediately after the report.

Brian

1 Like

Okay, I will do as your suggestions and thank you so much for explanation I will test and get back to you soon.

1 Like


I am facing the problem to create the Scheduled . it said " * Failed to validate job runtime: SMS gateway configuration does not exist"
Any solutions for this matter ?. thanks