1.Use “Open Browser” activity to navigate to the website.
2.Use the “Get Outlook Mail Messages” activity to retrieve the email containing the Excel attachment. and Specify the filter criteria to get the email with the Excel attachment.
3. Download Attachment:
Use the “Save Attachments” activity to save the Excel attachment to a local directory.
4. Read Excel Data:
Use the “Read Range” activity to read the data from the Excel sheet into a DataTable.
5. Pass the data table in loop and copy the data from the desired row.
6. Use the “Add Queue Item” activity to add the data from the selected row as a Queue item.
Configure the Queue item with the necessary parameters, such as the data to be passed to the website.
7. Use the “Get Queue Item” activity to retrieve Queue items one by one.
8. Use Type into activity to paste the data from the Queue item into the search box on the website.
Certainly! I’ll provide you with a step-by-step guide on how to achieve your automation task using UiPath. This involves downloading an Excel attachment from an email, extracting data from a particular row, adding that data as Queue items, and then using those Queue items to populate a search box on a website.
Step 1: Read Email and Download Attachment
Use the “Get IMAP Mail Messages” or “Get POP3 Mail Messages” activity to retrieve emails from your email server.
Configure the activity with your email credentials, server details, and filter criteria to identify the email with the Excel attachment.
Use a “For Each” loop to iterate through the list of emails obtained.
Inside the loop, use an “If” condition to check if the current email contains the desired Excel attachment. You can use the .Attachments property to access email attachments.
If the condition is met, use the “Save Attachment” activity to download the Excel file to a specified location.
Step 2: Read Excel Data and Add to Queue
Use the “Excel Application Scope” activity to open the downloaded Excel file.
Within the scope, use the “Read Range” activity to read the data from the Excel sheet into a DataTable variable.
Use a “For Each Row” activity to iterate through the DataTable and extract the data from the specific row you want to add to the Queue.
Inside the loop, add the extracted data as Queue items using the “Add Queue Item” activity. You can create a Queue in Orchestrator to store these items.
Step 3: Use Queue Items to Populate Website Search Box
Use the “Get Queue Items” activity to retrieve the Queue items you added in the previous step.
Iterate through the Queue items using a “For Each” loop.
Inside the loop, use activities to navigate to the website and populate the search box with the data from the current Queue item.
You may need to use web automation activities such as “Type Into” or “Set Text” to enter the data into the search box.
After entering the data, you can trigger a search or perform any other required actions on the website.
Continue the loop to process all Queue items.
Step 4: Error Handling and Cleanup
Implement error handling to capture any exceptions that may occur during the process, such as email retrieval failures, Excel file reading errors, or website interactions.
Consider adding logging and notifications to keep track of the automation’s progress and any issues that may arise.
Close the Excel application and release any resources once you’ve finished using it.
Ensure that the workflow handles the cleanup of temporary files or folders, such as downloaded attachments.
Remember to customize the activities, selectors, and data according to your specific email client, Excel file structure, Queue configuration, and website you’re working with. Additionally, UiPath provides extensive documentation and tutorials that can help you learn and understand each activity and concept in detail.