Add Link of document in Email alert

Can we have the link of documents set in email alert,so that when a user gets an email alert he clicks on the link sent in message and can view the document.


yes, you can use the get_url method to set url in email alert message.

e.g. {{ doc.get_url() }}

Thanks, Makarand

1 Like

Okay thanks

Hi @makarand_b

Trust you’re doing great. Your suggested solution gives an output like the one below:


Is there something that should be included within the brackets to make this produce a proper (complete) link?


Can anyone please give some insight here?

Kind regards,

Here’s the correct solution just in case anyone else needs this:

{{ frappe.utils.get_url_to_form(doc.doctype, }}


Kind regards,