Skip to main content
Question

Business Even Trigger Conditions - Compare New and Old values

  • February 23, 2025
  • 3 replies
  • 28 views

We are creating a business event to trigger an email if a POLine Promised Date changes by more than a certain amount. The logic for the comparison is, if the change in date of the Promised Date is greater than 20% of the difference between the old Promised Date and Today() we want to trigger the email. I cannot figure out how to reference both the old and new value in the Trigger Conditions to achieve the desired result. I can’t be sure, but from my testing, if I chose Operation: New Field Value or Old Field Value, the value of Promised Date field on both sides of the Condition are value as specified in the Operation. How can I get both new and old values together in an expression to compare these to decide if the date change was significant enough to trigger the Email Subscriber?

3 replies

aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • 1201 replies
  • February 23, 2025

I don’t believe you can use Data Field as both side of equation. What you can do is to add a custom field to the POLine and either using a Graph Extension assign a true/false or days changed and then use this custom field in your BE


Forum|alt.badge.img+12
  • Acumatica Support Team
  • 866 replies
  • February 24, 2025

Hi ​@cberwaldt 

Following approach may also help. You may have to explore further. 

Regards,


  • Author
  • Freshman I
  • 9 replies
  • February 24, 2025

@vkumar thank you. I did see that thread yesterday, and actually posted a reply there, because I do not seem have the AUAuditHistory in my DAC. I have AuditHistory but it lacks the segmented detail I would need to join it to the POLines table in a straightforward way.

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings