SAP CPS alerts with basic alerting module
We have only basic alerting module and we are using M33.68971 version Can you please advise, if it is possible to do the below things with the basic alerting module? If so, please advise.
1) From Monday to Friday, whenever a job gets failed in CPS, an email needs to be sent to firstname.lastname@example.org.
2) On Saturday and Sunday, whenever a job gets failed in CPS, an email need to be sent to the corresponding group as per the application area.
Thank you in advance.
Ramana S replied
I have defined the second parameter say 'parameter2' to get the 'job description' with the below REL.
=Query.getString('select Job.Description from Job where Job.JobId = ? ', [waitEvents.EVENT_EMAIL.raiserJobId])
I have defined the third parameter say 'parameter3' to get the 'job name' with the below REL by referring the second parameter in the below query.
=Query.getString('select JobDefinition.Name from JobDefinition where JobDefinition.Description = ? ', [parameters.parameter2])
Thank you so much nanda for pointing me in the right direction.