Process Flow Example: Import Documents from Microsoft Outlook Email Folder
Last Updated: Version R2604Follow these steps to create a task within a process flow that automates the import of document attachments added to a watched folder within a Microsoft Outlook Email inbox. This flow provides an option to convert the email body to an image and include it within a scanned file in the batch, or include it as a separate document in the batch. You can also enable an option that will automatically delete the original email from the Outlook folder, move it to another folder and/or categorize the email based on selected variables.
Before you complete these steps, an integration with an Outlook email address is required. Refer to Setup an Integration: Microsoft Outlook.You will select this integration during step 7 below. Ensure that you have a dedicated folder within the email inbox that will be used to process the documents.
A user with Designer access level can complete this task.
-
Start a new process flow from within the New Batch Type screen.
-
Drag and drop the Task from the Steps to a + symbol location on the Process Flow.
-
Enter a name for this task.
-
From the Type list, select New Batch.
-
Enter a name for the task.
-
From the Type list, select Import.
-
From the Destination list, choose a pre-configured Outlook integration.
-
Click Select Folder to choose the specific folder in the email integration that emails must appear in for this Batch to trigger.
Ricoh recommends creating a dedicated email folder that will only be used for RICOH Intelligent Automation purposes. Users will drag and drop emails with attachments to this folder to trigger the batch type.
-
From the Max file per batch list, set the maximum number of files to process in a single batch. By default, the selection is 1.
If an email has more than the default number of files, a new batch will be triggered as needed. For example, if the max file per batch is set to 2, but the email contains 3 attachments, two batches will be created.
-
Enable Include Email Body as Image if you want to include a scan of the email message body in the batch. When this option is enabled, you have several choices to make:
-
Treat as another attachment: Adds the scan of the email body as another attachment within the batch, rather than as an image within a batch document.
-
Include in all batches: If the email triggers the max file per batch setting to create more than one batch (when the number of attachments exceeds the default number set as the max number of files per batch), the email body will be treated as an attachment in all batches that are created.
-
Image Position: When including the email body as an Image (not as another attachment), select where you want the email body image to appear. This position is set to First by default, but you can also choose Last if preferred.
-
-
Configure a file mask. The mask is useful if you want to import only a certain file type. For example, if you want to only import PDF files, you can create a mask that ignores TIFF and Word documents.
-
Add one or more Extraction Values.Choose a Field/Variable, and then select the metadata from the import that will be mapped to that field/variable. Click +Add Extraction to repeat this step and map as many metadata values as necessary.
-
Add conditions that must be met for this import task to trigger. For example, choose Has Attachment - Equals - True, and add a second condition for Subject - Equals - Import to RIA. With these conditions only email sent to the specified email folder that have the subject "Import to RIA" AND have an attachment will trigger this task.
-
From the After Import section, determine what will happen to the source email once the import to RICOH Intelligent Automation is successful. These options can be combined; for example, you can assign a category AND move the imported email to a specific folder, or you can assign a category AND delete the email from the original folder. You cannot choose both move to a folder and delete the email.
-
Move to folder: Move the imported emails to a specified folder in Outlook. You can populate the folder name can be populated from dynamic values (system value, global variable, batch field, batch variable, batch business rule, document field, document variable, document business rule) or fixed value as needed. If the folder does not exist, the system automatically creates a new folder and then moves the emails into that folder.
-
Delete email: Deletes the original email from the Outlook folder.
-
Assign Category: Assign a category to the imported emails. You can populate the category name can be populated from dynamic values (system value, global variable, batch field, batch variable, batch business rule, document field, document variable, document business rule) or fixed value as needed.
-
- Click OK to save the Task.
-
Add a second Task to the Process Flow after the Import task. This task should be a Review task that allows an Operator to verify the documents imported from the email. Set the type to Review, choose the Document Options, and then assign the task to a specific user or group.
-
Click OK to save the Second Task.
-
Add a third task to the Process Flow that routes the scanned documents to a destination. The resulting flow will look like the flow shown to the right.
From the end-user viewpoint, this is the workflow:
-
An email is moved to the specified 'watched' email folder AND it contains a PDF attachment AND it has the subject "Import to RIA".
If the email contains other file formats such as TIFF or Word attachments, those are ignored. If the email contains a PDF attachment, but the subject is NOT 'Import to RIA', the entire email is ignored and this process flow is not triggered.
-
The Import from Outlook Inbox task is triggered and the attached document is imported to RICOH Intelligent Automation. If an After Import option was selected by the Designer, the original email will be either Deleted, Moved to a Folder, and/or Assigned to a Category.
-
The Review import from email task is triggered and appears in the Work Queue. A user assigned to this Batch Type can View and Submit the document after confirming the Document Options.
-
The Route to destination task is triggered. The document is routed to the configured destination.
-
The flow is complete.