Nitesh Asthana1
Kilo Guru

Hi Lisa,



I just tested in my OOB instance, and below are my comments:



if(gr.next()){


              gs.info("lisa parent: " + gr.parent);                             //if you can see this in logs, it means if condition is being met


              template.print('<p><font size="4" color="#808080" face="helvetica"><strong>');         // This line was printed in the email


              template.print('Rejection Details</strong></font><br><font size="3">');     // This line was printed in the email as well


              template.print('<b>Rejection Level:</b> ' + gr.wf_activity + '<br>');   // This line was not printed in the email because I don't have gr.wf_activity field.when I removed gr.wf_activity, it got printed.


              template.print('<b>Approval Group:</b> ' + gr.assignment_group + '<br>'); //same as the 4th line


          }



Ensure if you are getting value of gr.wf_activity and gr.assignment_group (print their values in logs). Check logs if you get any error.


View solution in original post