cancel
Showing results for 
Search instead for 
Did you mean: 

Approver's comment in GP email template?

darren_hague
Contributor
0 Kudos

Hi all,

I have a simple guided procedure with an "Approve or Reject" step which sends emails.

The problem I have is this: how to include the action's output parameters in the email, specifically the approver's comment (technical name: output.comment)?

I have tried the following:

`writeln(ctxt.output.comment)`

in the template, but it just generates a space instead of the actual comment entered by the approver.

Any help appreciated,

Darren

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Darren,

you have to define the input parameter "output.comment"

also in Send Notification CO (and map it with the parameter that you have define in the previous CO),

and then write `writeln(ctxt.output.comment)`,

in the template.

Regards.

Luca

darren_hague
Contributor
0 Kudos

Hi Luca,

The problem is, I'm not using a Send Notification CO - the "Approve or Reject" CO is the one sending the email, as it has templates for "Approve" and for "Reject".

Cheers,

Darren

Former Member
0 Kudos

Ok,

this is what i think:

the parameter output.comment exist only when the co has been executed,

when the mail template is compiled the parameter ctxt.output.comment still does not exist.

Then if you want to use a parameter with replacements you have to define it as an input parameter.

Cheers.

Luca

darren_hague
Contributor
0 Kudos

Luca,

I think you are correct - which is a pity.

To me, it would be logical to make the result of the decision available for the email template...

Thanks anyway,

Darren