cancel
Showing results for 
Search instead for 
Did you mean: 

Generating download URLs for Share

nirvanvjain
Champ on-the-rise
Champ on-the-rise
Hello Everyone,

I have a requirement that in EMAIL/SMS Alert , User of Knowledge Management {Alfresco Share} should get Document Download link as soon as he/she Uploads the document ([size=200]or[/size] say after approval in workflow/rule applied) or Say all user who have access of that Particular folder(Space) will have an Email/SMS Alert having the download link of that particular document and when he/she clicked as there is Single Sign on He/She will able to download.


While going through Alfresco Share, I found that in down-left side there are Download URL,Document URL and This Page URL.


These URLs are reflected automatically. I want to get these URLs in my custom Code.

If in Java code somehow by WebScript if we can get these URLs so after getting those, through mail API if System {Alfresco Share} can sent that URL in to mail body then also its fine for me.

Can we do it by writing our own Email Template by taking reference of "notify_user_email.ftl" which suffice this above requirement(s) ?

Please help me urgently.

Appreciate your help.

Thanks!
-Nirvan
1 REPLY 1

mrogers
Star Contributor
Star Contributor
Yes you can write an email template.      Share won't be sending the email, that would be alfresco repository functionality so you would need to write a policy or rule that triggers an email action. 

From memory, the mail action is rather limited in the model it presents to the template for formatting so I'd suggest you start with the existing email action and copy and modify it to your requirements,  in particular make sure that all the data you want is in the model for your template to format.