cancel
Showing results for 
Search instead for 
Did you mean: 

Alerting Module - Pass parameter to Job Def Alert Source

Former Member
0 Kudos

Hello,

I am attempting to pass specific support info from a failed job to the job definition alert source (alerting module) email body. I am successfully picking up things such as ${jobDefinition} and ${newStatus}.

The parameter would include a string value in the originating job definition - example "This job is critical and requires attention"

Anyone know how I achieve this?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

nanda_kumar21
Active Contributor
0 Kudos

As per documentation, the following should work:

To mix REL and non-REL substitution parameters, proceed as follows:

='Job ${jobId} has a parameter Param1 with the following value: '+parameters.Param1

thanks

Nanda

Former Member
0 Kudos

Nanda,

When I pass this to the operator message I am able to get the param1 to show in the email subject.

='Job ${jobId} has a parameter Param1 with the following value: '+parameters.param1

I am unable howerever to get this to do the same in the email body. I am using html for the source email... here is an example -

<html>
  <head>
    <title>CPS Notification</title>
  </head>
<p>

='Job ${jobId} has a parameter Param1 with the following value: '+parameters.param1

<p>
  </body>
</html>

do I have something wrong with the syntax? This is how I see it in the email  =

"Job 123456 has a parameter Param1 with the following value: '+parameters.param1"

Thanks,

Brian

Answers (0)