Variables in Email Message

Hi,
I want to use Variables in Email Alerts.
Please let me know, how can I use variables in email alerts.
Like I want to send email like:

Hello Name_of_User,

PO_Number of Supplier_Name created on Create_Date created by PO_Creater_Name is pending for your approval.

Do read this:

https://erpnext.com/user-guide/setting-up/email-alerts

also see the example in the Email Alert on how to use dynamic properties of the doc.

@rmehta the link that you provided is broken, are you able to help to provide another link? I want to know what are the other variables which are available as well for the message. thanks!

https://manual.erpnext.com/setting-up/email/email-alerts

Hi

I have created an email alert for PO like below


A new PO has been generated as per following details:

PO No. - {{ doc.name }}
Supplier - {{ doc.supplier_name }}

Kindly review and approve the same


You can use doc.transaction_date for the date of creation and doc.owner (you will have to add a custom field with name owner and type link and option User) to get the name of the creator of PO.

Hope it helps !!

1 Like

Hallo, exactly this is interesting for me - but the link is not working - too old.

Please let me know, where to find these variables today.
Thanks

An example of your search options for docs?

From an ERPNext instance, in Help search box enter ‘email alerts’