cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger error alerts to clients based on payload

PavanKumar
Active Contributor
0 Kudos
955

Hi,

I am working in pi 7.4 dual stack having a requirement whenever there is a error in PI need to send error information to particular client. Client name will come in payload of message, So based on payload condition need to route alert emails to the particular clients.

Ex: If a message with client name field as 'X" has failed in PI with some error,this error message has to be routed to 'client X' mail ids similarly for other clients 'Y','Z' with customized body and subject.

Please suggest the approach for achieving this requirement.

Regards

Pavan

View Entire Topic
PavanKumar
Active Contributor
0 Kudos

Hi Sugata,

Thank you very much for your efforts and sharing the code, I will try as you suggested and let you know the outcome.

Regards

Pavan

sugata_bagchi2
Active Contributor
0 Kudos

Sure, and in the code use this line -

Not sure why it is changed to below in the code section

JSONreq = JSONreq.replace("&", "&");