hello Comunity
in my custom app, i want to send some data in the content message like created by or get data from other doc based on linked field in the main doc of the notification
i have been trying to use frappe.get_doc() but it throw an error
Seems it’s failing on develop branch . It works well on version-15, I tried with last updates …
Some changes was included on notifications system recently, maybe related.
As workaround, you can create a server script for your doctype …
company_name = frappe.get_value("Company", doc.company, "company_name")
frappe.sendmail(
recipients="recipient@mail.com",
sender="sender@mail.com",
subject="New support ticket was created",
message=f"Hey, {company_name} was created.",
delayed=False)```
hi @avc
I hope so it’s related to the develop branch only, I’ll try it up in a Test env. if not so i’ll go with the server script. thanks for your cooperation