Solved

Email Notification Add Every SO Line Item

  • 17 October 2022
  • 3 replies
  • 155 views

Userlevel 3
Badge

I am attempting to send any ecommerce Orders an email through Acumatica instead of our ecommerce platform (BigCommerce) to be able to use some fields that are unavailable through BigCommerce. I believe I have everything set up but have run into two hurtles.

  1. If an SOOrder has multiple line items the email is only showing the first line. I need it to show every line, whether its 1 or 20. Even if I replicate the ((Transactions.InventoryID)) it will only show the first line item of the order.
  2. I am unable to pull SOOrder Notes to use that in my email template (This is where BigCommerce imports Customer Order Notes to).

 

**Note: I tried using the Report Designer and embeding the report as HTML into the email but none of the fields populated from the report when using this method. The report works just fine if I attach as a PDF, but this is not the solution I’m looking for.

Thank you for your help!

icon

Best answer by manikantad18 17 October 2022, 18:15

View original

3 replies

Userlevel 7
Badge +4

Hi @rmillerKimball! I think for this issue you’ll need to make a <for each> loop in the notification to get the other lines:

The second part you may need to link to something like NoteDoc to get these notes off the header, have you already tried a <for each> loop and NoteDoc table?

Userlevel 7
Badge +12

Hi @rmillerKimball 

1.Please review the documentation available:

 

https://community.acumatica.com/reports-and-generic-inquires-115/the-formatting-of-for-each-loop-in-notification-template-4505

 

https://help-2022r2.acumatica.com/(W(1))/Help?ScreenId=ShowWiki&pageid=b95a9c38-deb7-4735-8d9a-e47c4702adf1

 

If all items are not coming in the Notification email please review each loop condition once

2.

Check @Gabriel Michaud  Suggestion

Acumatica dynamically adds a field called NoteText whenever the record supports the ability to have a note.  you can use ((Document.NoteText)) in the message and it will pull the note at the document level. The field is not listed when you click on Insert->Data

Thanks

Userlevel 3
Badge

A bit delayed, but thank you for your help! Even found that if you wrap what you want to replicate in the <foreach> tag it will copy the HTML line for line of the SO order as well! Very cool!

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved