Using new line inside a string

0
Hi guys, I am trying to connect to an Email API which has an email status filter that can accept multiple filtering values but only with each status on a new line. Example: Unread Draft Failed I am now trying to create this string in the API call inside the microflow, but nothing will work. I tried with ‘\n’ and ‘<br>’ and also wrote them on new lines. Nothing worked. Does anyone have any idea how this can be done? Thanks, Razvan
asked
2 answers
1

Another way to insert a new line is to simply decode it:

'Title:' + urlDecode('%0D%0D') + 'Text body …' + urlDecode('%0D')

Instead of ‘%0D’ (hex for ASCII CODE 13 [Carriage Return]), you can use this trick to insert many other whitespace characters as well.  You can also use this to insert characters dynamically.

You can also get creative:

urlDecode('Unread%0DDraft%0DFailed')

 

answered
1

Razvan,

Try creating a string variable like this:

and use that string variable in your API call.  Not sure, depending how its being sent, you may need to urlEncode, which would look like this:

Hope that helps,

Mike

answered