What is the code used to link to employee in email reminders?

Hi all,

I am setting up email reminders for our company. Things like new employee added, start date updated, resignation etc.

What is the url used to link directly to the employee in question? I currently have:

<a href="{{ doc.employee_name }}">{{ doc.employee_name }}</a>

which doesn’t link correctly to the record in the ERP.

Thanks in advance

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

Cheers!