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
Notification Templa...
 
Notifications
Clear all

Questions Notification Template - detail records

 
Everything Else
Last Post by Brandon 7 years ago
4 Posts
4 Users
2 Reactions
4,297 Views
RSS
JustPaul
Posts: 33
 JustPaul
Topic starter
February 23, 2019 4:44 pm
(@justpaul)
Trusted Member
Joined: 5 years ago

The final result is to email an Admin user a list of newly created or modified employees on a schedule.

for this I am using a Generic Inquiry: EP ADDS.  Using CONDITIONS of the GI, I am receiving the records desired.

Next I created a Notification Template. This is where I am having difficulty as it only prints a single record where the GI is showing 4.

the text in the Notification is as follows:

New employees have been created

<foreach view="EP Adds">

 ((EP_acctCD)) ((EP_acctCD_description)) ((EP_createdDateTime)) ((EP_createdByID_description))<br>

</Foreach>

the issue I believe is getting FOREACH VIEW to properly identified so it can change.  I don't know what name it is expecting.

the email comes out like:

New employees have been created

<foreach view="EP adds">

 ISL105551 Isxxx, Jxxxxxx 2/21/2019 7:42:39 PM xxxxxx <br>

</Foreach>

(I replace text with xxxxxx to hide actual names.)

Please help...

I next have Business Event, on a schedule that produces the email. this runs well and I have not problems.


3 Replies
Brandon
 Brandon
(@brandon)
Joined: 7 years ago

Member
Posts: 26
March 18, 2019 5:39 pm
Reply toJustPaulJustPaul

I recently had the same issue with a notification about orders that met a certain criteria in our inquiry. I wanted a single email showing all the orders that met this criteria and was having the same problem of only the first result showing at first. 

I believe you need to drop the view="EP Adds" from the template. Try using the below instead and it should work. I also repeated this foreach loop for each data field that I wanted to show on my email template. 

<foreach> ((EP_acctCD)) </foreach>


Reply
Tim Rodman reacted
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
February 24, 2019 2:11 am
(@timrodman)
Famed Member
Joined: 10 years ago

I would definitely go with a Business Event here. The Automation Notifications (SM205040) screen is now largely obsolete in my opinion.


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
February 24, 2019 5:46 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Try switching to HTML view and edit the HTML directly so that it is valid. Also confirm the object name is correct. I used this many times without issue, but not for that table. Example:

<p class="richp"><table><tbody>
<tr></tr>
<tr><td>Supplier:</td><td><span data-field="yes">((vendor.AcctCD))</span> - <span data-field="yes">((vendor.AcctName))</span></td></tr>
<tr><td>Order&nbsp;Total:</td><td><span data-field="yes">((Document.CuryID.CurySymbol))((Document.CuryID.CuryID))</span>&nbsp;<span data-field="yes">((Document.CuryOrderTotal))</span></td></tr>
<tr><td>Description:</td><td><span data-field="yes">((Document.OrderDesc))</span></td></tr>
<tr><td valign="top">Order&nbsp;Items:</td><td>&lt;foreach view="Transactions"&gt;
<span data-field="yes">((Transactions.TranDesc))</span>&nbsp;<span data-field="yes">((Document.CuryID.CurySymbol))((Transactions.CuryLineAmt))</span> |
&lt;/foreach&gt;</td></tr>
<tr><td>Owner:</td><td><span data-field="yes">((Employee.DefContactID.FirstName))</span></td></tr>
</tbody></table></p>

You can also try using HTML entities for < and > enclosing the "foreach view" entity. 


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 53 Online
  • 2,338 Members
Our newest member: Shoaib Shafquat
Latest Post: Pick List report suddenly not splitting on Shipment
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.

‹›×

    ‹›×