@Bot_Learner1
Anything you tried?
Here is basic approach suggested by AI just give it a try and let us know if any issue.
Requirement Summary
You need a bot to:
-
Login to 1 website 5 times, each with different credentials (and URL from Assets).
-
Download 5 reports to different shared folders (one per login).
-
Send a confirmation email for each download.
Setup in Orchestrator
Before you build the workflow, make sure these Assets exist:
Asset Name Type Description
URL_Asset Text Website URL
Usernames Text Array / List (or store in a Config Excel) List of usernames
Passwords Text Array / List (or Credential Assets) List of passwords
ReportPaths Text Array / List Paths to save downloaded reports
Tip: You can also keep all in one Config Excel file instead of multiple Assets.
Workflow Steps in UiPath Studio
- Initialization
Activities:
Get Asset (for URL_Asset)
Get Asset / Read Range (for credentials list and report paths)
Assign variables like:
URLs = URL_Asset.Split(“,”)
Usernames, Passwords, ReportPaths
- Loop Through Each Login
Use a For Each index in Enumerable.Range(0, 4) loop.
Inside loop:
Step 1: Open Website
Use Browser/Application → Chrome/Edge
URL = URL_Asset (or use multiple URLs if different)
Step 2: Login
Type Into: Username field → Usernames(index)
Type Secure Text: Password field → Passwords(index)
Click: Login button
Add a Delay / Element Exists to ensure page loads.
Step 3: Download Report
Navigate (if needed) → click report/download button
Use Click, Type Into (for date or filters)
Use Send Hotkey (Ctrl+S) or Set Download Path in browser
Path = ReportPaths(index) + “\Report_” + Now.ToString(“yyyyMMdd”) + “.xlsx”
Wait until download completes using:
Path Exists
or Wait for Download activity (if available)
Step 4: Send Email Notification
Use Send Outlook Mail Message or Send SMTP Mail Message:
To: “your_email@example.com”
Subject: "Download Successful for User " + Usernames(index)
Body: "Report downloaded successfully to: " + ReportPaths(index)
Attach the downloaded file if needed.
Step 5: Close Browser
Use Close Tab or Close Application
- Wrap-Up
After loop, you can add:
Log Message (“All reports downloaded successfully.”)
Or summary email to admin.
Sample Pseudocode Flow
Get Asset: URL_Asset → strURL
Get Asset: Usernames → arrUsernames
Get Asset: Passwords → arrPasswords
Get Asset: ReportPaths → arrPaths
For Each i in 0 to 4
Use Browser (strURL)
Type Into UsernameField: arrUsernames(i)
Type Secure Text PasswordField: arrPasswords(i)
Click LoginButton
Wait for Page Load
Click ReportsMenu
Type Into DateField: Today’s Date
Click DownloadButton
Wait for File: arrPaths(i) + "\Report_" + Now.ToString("yyyyMMdd") + ".xlsx"
Send Outlook Mail Message:
To: "<your email>"
Subject: "Report Download Successful - " + arrUsernames(i)
Body: "Report saved to " + arrPaths(i)
Close Tab
Next
Recommended Activities List
Step Activity Purpose
1 Get Asset Get URL, credentials, and paths
2 For Each Loop for 5 logins
3 Use Application/Browser Open website
4 Type Into Enter username
5 Type Secure Text Enter password
6 Click Login / Download
7 Wait for Download / Path Exists Confirm file downloaded
8 Send Outlook Mail Message Notify success
9 Close Tab End sesion