01_RoutingFlow

The 01_RoutingFlow monitors a shared mailbox and routes emails into subfolders for downstream processing. This workflow includes these processes:

  • Monitor the shared mailbox for new emails on a scheduled basis
  • Pick emails based on the MaxEmailsFromParentFolder argument
  • Distribute emails evenly into subfolders specified in the SubFolderList argument.
  • Trigger the next job (02_UploadFiles) for each subfolder using the RPA _execute API
  • Each subfolder is processed as a separate job instance. Multiple jobs per subfolder are not required.
  • Downstream flows handle document upload and OCR result retrieval

Required Workflow Arguments

Argument Name Description Type
SubFolderList List of subfolders where the emails will be evenly distributed from the parent folder. List<String>
ParentEmailFolder Name of the main folder from which emails will be read. String
IDP_URL Base URL for IDP. String
IDP_EndPoint Endpoint for creating a new document processing job in IDP. String
IDP_GetJobDetailsEndPoint Endpoint to fetch OCR results using Job ID from IDP. String
MaxEmailsFromParentFolder Max number of emails to pick from the parent folder for each run. Int32
RPA_ExecuteAPI_URL Base URL of RPA API. String
Local_ParentFolder Path on the local machine where intermediate files (JSON, outputs) are stored. String
RPA_ExecuteAPI_Endpoint The RPA _execute API endpoint String
Upload_To_IDP_JobName Name of the job created using "UploadFilesToIDP" project on tenant to be triggered for uploading files to IDP. String
GetIDP_Result_JobName Name of the job created using "GetIDP_Result" project on tenant to be triggered for getting result of JobID's. String
Note: The 01_RoutingFlow workflow uses process arguments. The 02_UploadFiles and 03_GetResults workflows use the arguments passed from 01_RoutingFlow.