Process email approval results
With the email approval notification functionality, users can approve or reject invoices through email notifications, but these results are not applied to their corresponding invoices immediately. Instead, when a user presses Approve or Reject, an email is sent to an unmanned email approval inbox, which must exist before configuring the import process.
Because of this, it is necessary to configure a process that takes the results from the unmanned email inbox and then approves or rejects an invoice based on the email content.
You can process the unmanned email inbox to approve or reject an invoice based on the email content by following these steps.
- Launch the TotalAgility Designer.
-
On the menu, select
.
The Import settings are displayed.
For more information on the settings available for import settings and import sources, see the TotalAgility Designer Help.
-
Click
New.
The New import connection window is displayed.
-
Set the following fields on the
New import connection window.
- For the Name, enter "Email Approval Import Connection."
- Enter the Process password and Administrator password.
- Ensure that Active is selected.
- Optionally, enter a Description or alter the Message connector URL as needed.
- Click Save.
Your import connection is saved and you are returned to the list of Import settings.
-
Click on the Name of your newly created connection.
The Update import connection page displayed.
-
In the
Import settings group, click
.
The New import source page is displayed.
-
On the
New import source page, edit the following settings.
- Select IMAP from the Type list.
- For the Display name setting, enter "Import Email Approval Responses."
- Ensure that Active is selected.
- For the Import content setting, select Only body from the list.
- For the Body with message header setting, select Exclude message header.
- In the Host field, enter the address of your email sever that is used for the unmanned email account that collects responses.
-
Choose whether to
Keep messages on server.
Selecting this setting keeps the emails but filters them to a Processed folder.
Clearing this setting deletes the emails after they are processed.
- In the Port field, enter the port of your email server.
- Enter the appropriate Username and Password for your email server.
-
Test your settings by clicking
Test mailbox.
If the test is successfully, continue to the next step. If there are issues, check your connection settings and try again.
Your mailbox settings are successful.
-
Staying in the
New import source window, scroll down to the
Associated action(s) group and do the following.
- Select Create new job from the Job type list.
-
Select
AP Handle Email Address Answer from the
Process list.
a list of Initialization variables is provided for mapping.
-
Map the variables as follows by selecting values from the
Mapping lists.
-
Email Body to Body
-
From to From
-
Subject to Subject
-
-
Click
Save.
The new import connection is saved and added to the Import settings list.