I am having an issue with a workflow I’m developing.
The workflow is for sending emails to people with a payment default. In order to format the email body, I am attempting to add line breaks. I tried using environment.NewLine, set in an assign activity (will work in message boxes, not in the email body section)
(arrow)br(arrow) where (arrow) is < or > (missing XML tag) No Screenshot for this
\n (Identifier Expected) No Screenshot for this
Does anyone have any suggestions of what to add, or any alternatives I could try instead? I cannot share the workflow due to sensitive information, hence the blanked out parts on my screenshots.
Do not add line breaks. This can be done easily by using a HTML editor because email body is usually in HTML format.
So, use a free online HTML editor and type your full letter there. This will generate the HTML code. If you need to bind in values like the name of the person etc, those things can be later binded into the email body through string manipulation.
Once the HTML code is ready, add the code template into a text file and save it.
Now, in the workflow, read the text in the text file through read text file activity.
Now, t hrough string manipulation, add the values you need to be combined…
Now, use the final string in the email body. this will structure your email in a nice and a beautiful way
neither suggestions work, I’m afraid. I have tried setting it an assign, like I was doing previously, and that hadn’t worked. I have now tried moving the value to a textfile and reading it, as you suggested Lahiru, but it is taking everything and printing it (printing all < br/> and < p> set in textfile using a html editor). Anything else I can try?
@william.coulson
great I do feel that the brackets are translated into the html entity codes.can you crosscheck while inspecting the resulting html source code of the textfield?
@william.coulson can you check if you have simulate type enabled. If its enabled can yo do a run with disabled option and let type in with type into “Hello [k(enter)] World”