cancel
Showing results for 
Search instead for 
Did you mean: 

Hyperlink using javascript

pp20218
Champ in-the-making
Champ in-the-making
Hi All,
I am making some changes to the Approve/Reject workflow which is existing in Alfresco Out of Box. My requirement is it will trigger an email to the reviewer and the email will contain an hyperlink .On clicking the hyperlink, it will lead the reviewer to login to alfresco.

I have used the below Code

                var mail = actions.create("mail");
                 mail.parameters.to = initiator.properties.email;
                 mail.parameters.subject = "Approve/Reject the document " + bpm_workflowDescription;
                 mail.parameters.from = bpm_assignee.properties.email;
                 mail.parameters.text = "IT WILL HAVE A HYPERLINK ON CLICKING IT ALFRESCO LOGIN SCREEN WILL OPEN"
                 mail.execute(bpm_package);


I can able to send the email. But how i can make that link in the body message??

Pls help me with your inputs.

Thanks
PP
2 REPLIES 2

pp20218
Champ in-the-making
Champ in-the-making
Can anyone help me pls?

pp20218
Champ in-the-making
Champ in-the-making
Finally I myself got the solution.

A simple URL with http:// is treated as a hyperlink in the browser.

var mail = actions.create("mail");
mail.parameters.to = initiator.properties.email;
mail.parameters.subject = "Approve/Reject the document " + bpm_workflowDescription;
mail.parameters.from = bpm_assignee.properties.email;
mail.parameters.text = "http://localhost:8080/alfresco"
mail.execute(bpm_package);