Hello,
I am currently trying to compose a new Outlook email upon clicking a link from the Appian interface. I am unable to insert a line break in the body of the email. Any thoughts on how to resolve this issue ?
Thanks,
Sidd
{ a!richTextDisplayField( value: { a!richTextItem( text: "Click to send Email ", link: a!safeLink( uri: concat( "mailto://abc@xyz.com?subject=Test Email &cc=qwe@xyz.com &Body=", "Hello " & char( 10 ) & "user" ) ), size: "MEDIUM" ) } ) }
Discussion posts and replies are publicly visible
Use "%0D%0A" as a line break. Replace "char(10)" with "%0D%0A".
{ a!richTextDisplayField( value: { a!richTextItem( text: "Click to send Email ", link: a!safeLink( uri: concat( "mailto://abc@xyz.com?subject=Test Email &cc=qwe@xyz.com &Body=", "Hello " & "%0D%0A" & "user" ) ), size: "MEDIUM" ) } ) }
confirmed - works for me in chrome / outlook. It also works for me with just "%0A".
I was originally going to comment that Appian itself likely strips out any special characters (like newline) from the URI, but I wasn't clear whether there was a URL encoding that could be used - so thanks for clarifying.