Skip to main content
Question

Shipment Email: Add package contents nested under packages?

  • October 30, 2025
  • 3 replies
  • 35 views

Forum|alt.badge.img

Goal: To send an email out once a shipment is confirmed to the customer. The email should have a list of packages, each package with its tracking number. I also want to show what item(s) are in each package

I spent quite a bit of time researching this and couldn’t come up with a solution. It seems that a nested <foreach> won’t actually loop through, only the top item in the package is being printed, if there is more than one item in a package is never shows up in the email. I also found a lot of references saying don’t use the view=”” in the foreach, but the email failed anytime I took out the view.

 

The code below gets close, it will list the package #, tracking #, and first item in the package. 
Unfortunetly, it still shows <foreach view="PackageDetailSplit"> in the email, which tells me the view name isn’t correct, but that is what shows up on element properties 

<foreach view="Packages">
Package # Tracking #
((Packages.LineNbr)) - ((Packages.TrackNumber))
<foreach view="PackageDetailSplit">
InventoryID Description
((PackageDetailSplit.InventoryID)) ((PackageDetailSplit.InventoryID.Descr))
</foreach>
</foreach>

Acumatica 2024R2

 

Appreciate any input, thank you!

3 replies

Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+15

@rmillerKimball Are you looking similar email template?

if yes please review below suggestionshttps://community.acumatica.com/distribution-6/for-each-loop-update-in-email-template-32563


Forum|alt.badge.img
  • Author
  • Varsity I
  • October 30, 2025

Hi ​@Manikanta Dhulipudi,

Similar, I was able to accomplish what the best answer is in that post easily enough. But, I was hoping to show the package contents as well, something like this:

Package Number Tracking Number    
1 track1    
  InventoryID Description Qty
  003867-000 partdescription 1
  004528-000 partdescription 2
  005450-000 partdescription 1
2 track2    
  InventoryID Description Qty
  003867-000 partdescription 1
  004528-000 partdescription 2

 


Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+15

@rmillerKimball Oh! it seems to be more complex to display the information, I will try in local and let you know.