Hello Everybody,
I have been trying to come up with an email template that works for a custom entity we created that sits above sales orders with a one to many relationship. The sales orders show up related to the custom entity called CMultiLocationSalesOrder. However what I am not able to pull into the email template that is set to the CMultiLocationSalesOrder all the sales orders linked delivery orders.

However, as you see I am not relating the delivery orders related to the sales order to the cMultiLocationSalesOrder
The code that does not work:
If anyone has any ideas if this is possible or not I would love to hear if its possible.
I have been trying to come up with an email template that works for a custom entity we created that sits above sales orders with a one to many relationship. The sales orders show up related to the custom entity called CMultiLocationSalesOrder. However what I am not able to pull into the email template that is set to the CMultiLocationSalesOrder all the sales orders linked delivery orders.
However, as you see I am not relating the delivery orders related to the sales order to the cMultiLocationSalesOrder
The code that does not work:
HTML Code:
<!-- {{#each deliveryOrders}} --> <!-- {{/each}} --> <!-- {{#each salesOrder.deliveryOrders}} --> <!-- {{/each}} -->
If anyone has any ideas if this is possible or not I would love to hear if its possible.

Comment