Linebreak in email body via a!safeLink

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

Parents Reply
  • 0
    Certified Lead Developer
    in reply to Stefan Helzle

    Thanks Stefan!

    The urlwithparameters() function worked for generating the proper url to be used in the safeLink(). However, it still could not get rid of the <div> and <br> tags, so I used striphtml() to achieve that. 

    The max char limit is 1274 as per my testing. I wish it was more!

    local!url: urlwithparameters(
    concat("mailto:",ri!emailMessage.to),
    {"cc","subject","body"},
    {ri!emailMessage.cc,ri!emailMessage.subject,striphtml(ri!emailMessage.body)}
    )

Children
No Data