Email alert when specific item ordered

I really like the Email alert function which allows to automatically send message when something happens in ERPnext.

I was wondering is it possible to make a condition about the child table.

My use case would be to send a notification if Sales Order (Item) has a product which requires further configuration. Usually these are specific items that could be distinguished by the item code.

Add below expression in Notification

"Your Item Here" in [d.item_code for d in doc.get("items")]

2 Likes