Need to display email script information in a table format for the notification?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2022 02:21 AM
Hi All,
I want to display to display email script information in a table format for the notification?, this notification basically trigger when fields(termination value , contract termination) changes
Email script :
if (event.parm2 == "contract_termination") {
template.print("Contract Termination changes from " + event.parm1 + " to " + current.u_contract_termination);
} else if (event.parm2 == "termination_value") {
template.print("Termination value changes from " + event.parm1 + " to " + current.u_termination_value);
} else {
template.print("Contract Termination changes from " + event.parm1 + " to " + current.u_contract_termination);
template.print('<br>');
template.print("Termination value changes from " + event.parm2 + " to " + current.u_termination_value);
}
Business rule:
if (current.u_contract_termination.changes() && current.u_termination_value.changes()) {
gs.eventQueue('cg_field_changes', current, previous.u_contract_termination, previous.u_termination_value);
}else if (current.u_contract_termination.changes()) {
gs.eventQueue('cg_field_changes', current, previous.u_contract_termination, "contract_termination");
} else if (current.u_termination_value.changes()) {
gs.eventQueue('cg_field_changes', current,previous.u_termination_value,"termination_value");
}
And we have one table format code actually so we need to implement that code to my script
Table code
Please help me to complete this
Thanks
Deepika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2022 08:46 PM