ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

Add Link of document in Email alert


#1

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.


#2

@Boacasa,

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

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

Thanks, Makarand


#3

Okay thanks


#4

#5

#6

Hi @makarand_b

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

/desk#Form/Quotation/QTN-00002

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

Thanks


#7

Can anyone please give some insight here?

Kind regards,


#8

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

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

:grinning:

Kind regards,


#9