Hi, when creating a new Notification, the event condition can be set to “Custom”. Unfortunately I cannot find any documentation on this feature. Also there seems to be nothing in the frappe or erpnext codebase to support this. Does anybody know how this works?
I need to send notifications based on my own custom logic, which is executed as a scheduled job daily. I know how to send notifications straight from my python code (frappe.sendmail), but I would love to have all notifications set up in the Notifications doctype for easy maintenance.
As far as I know,
When you choose custom at send alert on:
Condition comes in there.
Main Difference between Send alert on: New/Save :
At this levels Notification send only New documents or Saves,
But at condition whenever condition true it send notification
Let me give an examp:
If you choose custom then give condition something like
doc.status==“Open” and and doc.priority == ‘High’
Whenever this conditions it will send notification