AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Everything Else
Payment Notificatio...
 
Notifications
Clear all

Questions Payment Notifications

 
Everything Else
Last Post by Tim Rodman 6 years ago
5 Posts
3 Users
0 Reactions
2,418 Views
RSS
Jake Hickey
Posts: 38
 Jake Hickey
Topic starter
August 13, 2019 11:53 am
(@jake-hickey)
Trusted Member
Joined: 7 years ago

I've set up a notification to send an email when a payment is fulfilled (closed). It works great when there is only one invoice in the payment, but when there is more than one, I cannot seem to get the second or third, etc. reference numbers or invoice amount into the message body. Only the first invoice information appears. I'm not sure if this just means I have to go through all of the data fields to find which ones will do the trick, or is there an easier way around this?

4 Replies
Royce Lithgo
Posts: 557
 Royce Lithgo
August 13, 2019 4:25 pm
(@roycelithgo)
Honorable Member
Joined: 5 years ago

You need to do something like this to list multiple records - object names will change depending on context.

<foreach view="Transactions"> ((Transactions.TranDesc)) ((Document.CuryID.CurySymbol))((Transactions.CuryLineAmt)) | </foreach>

Reply
Jake Hickey
Posts: 38
 Jake Hickey
Topic starter
August 14, 2019 1:38 pm
(@jake-hickey)
Trusted Member
Joined: 7 years ago

So would I use something like <foreach view="Invoices"> ((Adjustments_History.AdjdRefNbr.RefNbr)) </foreach>? And do I just put that right into the body of the message?

Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
August 14, 2019 5:31 pm
(@roycelithgo)
Honorable Member
Joined: 5 years ago

Something like that but you need to find out the object names. 

To be honest, I can't remember how i worked out those names as they don't appear in the Insert, Datafield options. 

If you look at the help page for Notification Templates it mentions use of the foreach command. 

Try to look at the existing Templates and find one for the same screen you are working with - there might be a demo one there which has a foreach.

Reply
Tim Rodman
Posts: 3192
 Tim Rodman
Admin
September 16, 2019 3:03 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Here's a link to a related post that Royce made a while back that shows some sample HTML code:

https://www.augforums.com/augforums/everything-else/notification-template-detail-records/#post-3706

Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,518 Topics
  • 10.9 K Posts
  • 4 Online
  • 2,309 Members
Our newest member: Jason Rhodes
Latest Post: Table linkage for adding a customer location note to the SO Shipment form
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×