In the app, if I was wanting to display a list of items, each item on it’s own line, I would do the little trick of:
substitue([list] , " , " , "
")
Basically, substituting a line break, for every comma.
This does not seem to work in an workflow email template. Does anyone know how I can do this?
Additional related question: How can I insert HTML code into a workflow template? Trying to use angle brackets, <>, results in them being displayed, via HTML code of “<” and “>”. I’m thinking that I want to substitute an HTML “br” line break for each comma in this specific case.
Edit: funnily enough, HTML br code produces an actual line break in this posting, hah!
@Marc_Dillon
I haven’t tested it with a gDoc body template however below solution works if you use the email body property of the workflow rule. You are free to copy the app from my portfolio > https://www.appsheet.com/portfolio/245151
Just choose your name from Home screen and either edit the existing record or add a new one and enter your email address to receive the result.
Levent. I have a whole big complicated template that I’m not going to convert to HTML code in the Email Body field. So I guess this won’t work for me, but thanks for the effort! One question though; why do you split() the list inside of the substitute()?
Aleksi,
I think I’m going to have to do this. The length of the list is indeterminate though so I suppose I’ll just have to guess and overshoot. Messy, but good idea.
These are onedrive documents by the way, doesn’t look like it really matters though.
@Fabian, as stated above, this apparently doesn’t work in workflow templates. You’ll have to use either Aleksi’s isnotblank(index(… suggestion, or Levent’s suggestion about hand-writing the template in the email body property.
Thank you very much for that hint Marc. This was the solution.
I even didn’t need an extra VC.
In my template I added a Table and put in the expression: