fn-replace in E-Mail Body

  • 28 February 2020
  • 1 reply
  • 14 views

Badge +8

Hi Guys,

 

I have a case, where I want to add the Approval URL into an e-mail using the fn-replace function.

 

Background: Mail templates are stored in another list. There the approval url is referenced as
... Click <a href='"{TaskURL}"'>here</a> ... 
so that the users receive nicely formatted links.

 

For some reason, the "{TaskURL}" gets replaced to a span element, making the link not clickable:6607i0C4CBD3CDB83704B.png

In the mail, replace is used as follows:

fn-Replace({TextStart}multi_MailBody{TextEnd},"{TaskURL}",Approval URL)

multi_MailBody is the variable and Approval URL is from the Common-Section when inserting References. 

 

All other columns are inserted before using the regular expression action in the workflow which works fine. Unfortunately I can´t add the Task URL before the Task has been created.

 

I tried replacing only {TaskURL} (no quotes) but that resulted in no text being replaced at all.


1 reply

Badge +8

Once I recreated the task, the span tag was gone and now it is working as intended

Reply