We are writing some text in the body of the email based on info from the case. Because of this, the signature in not inserted anymore.
If I comment out the line that sets the value of the description field the signature is showing again.
It is as if you can either have the signature or write your own text when doing new emails.
When replying emails the signature, along with the text of the original email, is showing.
They only option now seems to instruct the users to manually do an Insert Email Signature.
Any other suggestions would be welcome.
Thank you
Here is the code we use
//Set Case Description
var description = executionContext.getFormContext().getAttribute("description").getValue();
if (description == null && caseDescription != null) {
description = "Description: " + caseDescription;
var description = executionContext.getFormContext().getAttribute("description").setValue(description);
}
if I comment out the last line the signature shows again but obviously we are not getting in the body of the email what we want
//Set Case Description
var description = executionContext.getFormContext().getAttribute("description").getValue();
if (description == null && caseDescription != null) {
description = "Description: " + caseDescription;
// var description = executionContext.getFormContext().getAttribute("description").setValue(description);
}