Is it possible to add new lines in the "Message Text" attribute of an Email Node?

I would like to know if it is possible to separate the text of the message into paragraphs by adding new lines in order to give the email some formatting.

The message text is simply a string so you should be able to insert line terminators such as \r or \n.

I have tried these 3 things:

1

{
  "attributeCode": "attributes_workflowMessageActionMessageText",
  "value": {
    "script": "return \"1st line \n 2nd second line\";",
    "discriminator": "WorkflowSyntaxNodeScriptWebModel"
  },
  "discriminator": "WorkflowComputedItemAttributeWebModel"
}

This one fails:
“In action designs_workflowMessageAction, there are references to variables that do not exist”
“missingReferencedVariables”: [“line”]


2

{
  "attributeCode": "attributes_workflowMessageActionMessageText",
  "value": {
    "script": "return \"1st line \\n 2nd second line\";",
    "discriminator": "WorkflowSyntaxNodeScriptWebModel"
  },
  "discriminator": "WorkflowComputedItemAttributeWebModel"
}

This one doesn’t fail but the email doesn’t have a new line


3

{
  "attributeCode": "attributes_workflowMessageActionMessageText",
  "value": {
    "script": "return \"1st line\" + Environment.NewLine +\"2nd second line\";",
    "discriminator": "WorkflowSyntaxNodeScriptWebModel"
  },
  "discriminator": "WorkflowComputedItemAttributeWebModel"
}

This one doesn’t fail but the email doesn’t have a new line

Apologies, I gave Manish false information there. The string ends up used in a mustache html template, which does not render newline nor allow you to inject any html tags. Maybe this is worthy of opening a product idea.