How to add comments in approval from Workflow activity user approval

Jerin5
Giga Guru

I tried the code: current.sysapproval.comments = "Please provide Approval for "; but I get the error "illegal access to getter method getmessage in class org.mozilla.javascript.rhino exception"

Any thoughts? I don't want to do a BR .

10 REPLIES 10

Many ways to skin this cat I suppose. How bout this?...

Create a duplicate copy of your RITM approval notification, but the second one has the custom text in the body you are looking for. Then for the OOTB notification, add the advanced condition:

if(current.sysapproval.cat_item.name =='<name of catalog item>'){
  answer='false';
}

and for the Custom one use:

if(current.sysapproval.cat_item.name !='<name of catalog item>'){
  answer='false';
}

This way, You have the normal approval notification as is, but have the custom approval notification for the catalog item you specify. 

Thoughts?