How to fetch name in doctype to notification


in the sales order there is sales team person name that name i want to fetch in notification here

Hi @Rahul7218

If same Sales person creating the record.
then you get {{doc.owner}} by this email will come.

For get full name use {{ frappe.get_fullname(doc.owner) }}

@Usama_Naveed
same person not creating record

Sales Person is the Child table.
It is possible more than one row will exist in the record

If only one record all time in the table then we can use

{{ doc.sales_team[0].sales_person }}

by this only first row Sales Person name will come.

Ok let me check using this

thank you @Usama_Naveed its working

1 Like