ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

How to include link to Document in Email Alert


#1

Hi,

Does anyone know the proper way to add a link to a document in email alerts? I tried using {{ doc.get_url() }} but it produces an output without the domain as shown below:

/desk#Form/Quotation/QTN-00002

Any insight will be greatly appreciated

Thanks


#2

Found the solution:

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

Cheers!


#3