Prompt
How do I automate data entry across a web portal and a legacy desktop app?
Latest observation
You usually automate this with a small workflow that uses RPA + browser automation + desktop automation, with validation and retry logic around it.
Typical approach
1) Map the end-to-end process
Identify:
- Source of the data
- Fields to enter in the web portal
- Fields to enter in the legacy desktop app
- Rules for when to skip, retry, or flag records
This is important because fragile automation usually comes from unclear field mapping.
2) Use the right automation tools
For a mixed web + desktop workflow, common options are:
-
Microsoft Power Automate Desktop
Good if you’re in a Microsoft environment; supports browser and desktop UI automation. -
UiPath
Very strong for enterprise RPA, especially if the desktop app is old or awkward. -
Automation Anywhere / Blue Prism
Also solid enterprise RPA choices. -
Selenium / Playwright for web + AutoHotkey / pywinauto / WinAppDriver for desktop
Better if you want a code-based solution.
A common pattern is:
- Use Playwright or Selenium to handle the web portal
- Use desktop UI automation for the legacy app
3) Prefer direct integration if possible
Before automating UI, check whether either system has:
- An API
- Database access
- CSV import/export
- Screen-scraping-friendly output
UI automation should be the fallback when no better integration exists.
4) Make the workflow robust
Add:
- Field validation
- Screenshots on failure
- Logging of each transaction
- Retry for transient errors
- Timeouts for loading screens
- Confirmation checks after submit
5) Handle the desktop app carefully
Legacy desktop apps often need:
- Fixed window sizes
- Stable screen resolution
- Reliable selectors or keyboard navigation
- Waits for screens to finish loading
If the app is not automation-friendly, tools like UiPath or Power Automate Desktop often work better than low-level scripting.
6) Structure the automation in steps
A good flow is:
- Read input record
- Log into web portal
- Search or create record
- Enter web data
- Submit and confirm success
- Open legacy desktop app
- Enter corresponding data
- Save and confirm
- Mark record complete
- Handle errors and continue next record
7) Use exception handling
For each record, handle cases like:
- Missing required fields
- Duplicate records
- Session timeout
- Popups or confirmation dialogs
- Network failures
8) Consider a hybrid “human-in-the-loop” model
If some records are messy or ambiguous:
- Automate the routine cases
- Send exceptions to a person for review
This keeps the system reliable without trying to automate every edge case.
Recommended stack by scenario
If you want low-code / fastest setup
- Power Automate Desktop or UiPath
- Excel/CSV as input
- Built-in browser and desktop actions
If you want code-based and more control
- Python
- Playwright for the web portal
- pywinauto / pyautogui / WinAppDriver for desktop
- pandas for data handling
- logging for audit trail
If the desktop app is very old
- Prefer UiPath or Power Automate Desktop
- They handle awkward UI flows and windows better than pure browser libraries
Practical warning
UI automation is brittle if:
- The page layout changes often
- The desktop app changes window titles or control positions
- You depend on coordinates instead of selectors
So always use the most stable selectors available and avoid hardcoded screen positions when possible.
A simple implementation pattern
- Input file: CSV/Excel/DB
- Automation engine:
- Web module
- Desktop module
- Shared config:
- credentials
- URLs
- field mappings
- Logging:
- success/failure per row
- Error queue:
- records that need human review
If you want, I can help you design a concrete solution for your case, like:
- choosing the best tool, or
- sketching a Python/UiPath workflow, or
- building a step-by-step automation plan for your specific portal and desktop app.