Question

Parameterized email url

Hello,

In a business process, I have a send email task. I am trying to include a URL in this send email task, but this URL comes from a parameter. Is it possible to hyperlink specific text like "Click here" and have the click here have a hyperlink that comes from a parameter?

 

Thanks

Like 0

Like

4 comments

Hello Tyler,

 

It is only possible to pull the process parameter into the email body but there is no way to use it for the selected text, like making the clickable hyperlink. 

I'd suggest to make some template with in the hyperlink in the text, and use it in the send email element. This would be the only solution to get the hyperlink with the required url.

 

Regards,

Dean

Dean Parrett,

Will this make the URL clickable? 

 Dear Tyler, 



If it fits the url format, then yes. But the "clickability" would be rather assigned by the mail messenger.

For example.

1. I've created the text process parameter with value creatio.com 

2. In the email template I added the text block and typed in yourwebsite. and added the parameter after it.

3. Once the email is received I receive clickable link yourwebsite.creatio.com in Outlook or Gmail, etc.

 

Other than that you would need to put the hyperlink to the specific word through the email designer manually.

 

Regards,

Dean

Solved by business process.

1. Read desired email template

2. Get the body parameter of the email template into a script task and use a regular expression to replace the hyperlinked URL, and then set this new body to a process parameter.

3. Use the process parameter directly into the text of a custom send email message task, or update the body column with the new html body via SQL.

4. Link is now clickable and is masked under "Click here"

Show all comments