Process Flow Example: Extract Document Metadata
Last Updated: Version R2604Follow these steps to create a process flow that allows importing documents from Outlook emails and extracts metadata into batch or document fields or variables. The configuration of these values begins in step 9 below.
The following metadata values can be extracted:
| Batch Metadata | Document Metadata |
|---|---|
| Message ID | File Name |
| Body content | File Size |
| Subject | |
| To, CC, BCC recipients | |
| From (sender) | |
| Attachments count | |
| Message importance (Low, Normal, High) | |
| Received Date/Time | |
|
Parent folder |
|
|
Flag status |
|
A user with Designer access level can complete this task. Before you complete these steps, an integration with an MS Outlook email address. 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.
-
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.
-
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 Attachments Count - Equals - 1. With these conditions, the import task is only triggered if the email has a single attachment.
-
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 o ryou can assign a category AND delete the email from the original folder.
-
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 placed in the specified email folder AND it contains a single attachment.
If emails are placed in the specific folder with mulitple attachments, this task will not trigger.
-
The Import from Outlook Inbox task is triggered and the attached document is imported to RICOH Intelligent Automation. The metadata is mapped to the selected Fields/Variables in RICOH Intelligent Automation.
-
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.