Fusion Lifecycle allows you to send formatted emails using predefined fields used within the workspace through the Advanced Print View functionality. The functionality has limitations as it can’t perform additional logic on the fields values and it can’t capture transition state change comments to include in the email.
In the example shown, I’m replacing the %COMMENTS% place holder with the actual comments included during the workflow transition.
// Send An Email Using An Advanced Print View email.to = userEmail; email.subject = "This is the email subject"; email.body = getPrintView("EmailTemplate"); email.body = email.body.replace("%COMMENTS%", item.workflowActions.comments); email.send();
Let me know if you find this tip helpful. Enjoy!