By using this website, you agree to our Terms of Use (click here)
Tim,
Hi Paul,
Not that I know of. But this would be a perfect situation for the new Business Events feature in Acumatica 2018 R1:
With a customization right?
I should say that there is a way to loop through line records in the body of the email that gets generated. Especially useful for printing multiple tracking numbers on a shipment. I just don't think you can use line records to trigger conditions.
The only issue is on the notification template. All data field placeholders are not updated with the approval changes. Inside the event handler has the change; however, when the notification is parsed, it does not have the new values on the Approval object.(ex. ApprovedBy, Status, etc.).
So when the email is sent, only stale data is shown such as Status: Pending.
To get around that issue I send a separate notification based on approve/reject status. I don’t like it but will have to do for now until I figure out the race condition on those DataField placeholders.
You do know about the Fields tab on the Automation Notifications () screen right?
When you list fields here, the notification only fires when a value in one of the fields listed changes.
It doesn't help with your FreeItem: checked, ReasonCode: "Some Value" logic needed on the lines. But it might help with only triggering when the Sales Order status changes.
Very cool. Thanks for sharing.