APEFT_NOTIFY
This workflow automates emailing vendors (payees) when their EFT payment has been processed. It includes:
-
Emailing details of the payment & invoices paid
-
Handling missing or invalid email addresses
-
Providing error notification to administrators if issues occur
Main Steps & Activities
-
Start Activity
-
The workflow is triggered when a relevant update happens in the system.
-
-
Get Email Address (A5)
-
The system tries to get the email address of the payee from the database.
-
Logic: If no payee ID is available or no email address is found, it logs an error.
-
-
Branching based on Email Address:
-
If email address is found:
-
Notify Payee (A1)
-
Sends an email to the payee with:
-
Payment amount
-
List of invoice numbers and amounts
-
Email subject: "Test - EFT Payment Processed-Check [Check Number]"
-
-
-
End
-
Workflow ends.
-
-
-
If email address is missing:
-
Missing Email Notify (A4)
-
Notifies administrators that the payee did not receive notification due to missing email.
-
Includes payee ID, check number, and job number in the message.
-
-
End
-
Workflow ends.
-
-
-
-
Error Handling Activity
-
If any error occurs (e.g., email sending fails), an email is sent to the administrator containing:
-
Workflow name
-
Check number
-
Vendor/payee ID
-
-
How Emails and Decisions Work
-
The workflow uses code to query the correct email address for the payee from a database (pe_email_dtl).
-
If the primary email address exists, a payment details email is sent to that address.
-
If not, a "missing email" notification is sent to the system admin—but the payee does NOT receive payment details.
-
All activities can retry "forever" (i.e., keep trying) for a couple of days in case of temporary issues.
Email Examples Sent by the Workflow
-
To Payee:
-
An EFT payment has been processed in the amount of [Amount] and includes invoices:
-
Invoice: [Invoice Ref] Amt: [Invoice Amount]
... (repeats for each invoice)
-
To Administrator (if email is missing):
-
[Payee ID] is missing an email address in PEUPPE and did not receive the EFT notification as a result for the following check run:
-
Check Number: [Check Number]
Job Number: [Job Number]
-
To Administrator (if error):
-
Error in APEFT_NOTIFY WF Model.
-
Check Number: [Check ID][Check Number]
Vendor: [Payee ID]
Workflow Transitions (Flow) in Plain Terms
-
Start ➔ Get Email Address (A5) if transaction is of type AP.
-
Get Email Address (A5) ➔ Notify Payee (A1) if an email is found.
-
Get Email Address (A5) ➔ Missing Email Notify (A4) if no email is found.
-
After Notify Payee (A1) or Missing Email Notify (A4) ➔ End.
-
If error occurs at any step ➔ Error Handler ➔ End.
Customization & Miscellaneous
-
Only processes triggered by table updates (not manual runs or scheduled).
-
Jobs, states, variable records, and attachments are configured as disabled/empty for this model.
Summary Table
|
Step |
Action |
Notes |
|
Start |
Workflow begins on update of payment table (AP Checks). |
|
|
Get Email Address |
Looks up payee's email address in the system. |
Uses payee ID from payment record. |
|
Notify Payee |
Emails payment details/invoices to payee. |
Only if address exists. |
|
Missing Email Notify |
Notifies admin about missing payee email; payee doesn't get payment details. |
Only if address missing. |
|
Error Handler |
If trouble occurs, notify workflow admin with details. |
|
|
End |
Workflow completes after notification or error handling. |
|