Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   Email alerts only after retires complete (http://www.mirthcorp.com/community/forums/showthread.php?t=218288)

DragonQueen 05-22-2018 10:27 AM

Email alerts only after retires complete
 
Is there a way to only send an email alert when the destination is actually in ERROR state and not in the retry phase?
We currently have 3 retires turned on and we receive 4 error alerts for the same error instead of 1 at the end of the retries.
We do not have the advanced alerting. We are on the Mirth 3.4.2
Any feedback or guidance is appreciated.

Thank you!

narupley 05-25-2018 07:31 AM

One thing you could do is only check "User Defined Transformer" in your alert errors. Then edit your response transformer, set the data types to Raw (so that it'll execute all the time even when there's no response payload), and manually send an alert:

Code:

if (responseStatus != SENT) {
        alerts.sendAlert($('responseStatusLine') + '\n' + responseErrorMessage);
}

Then you can include the ${error} variable in your alert template.


All times are GMT -8. The time now is 07:31 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation