Automate Company Data Integration with Power Automate and Excel
Question details
Create a workflow that collects, standardizes, matches, and compares company data from multiple sources before sending results to a company API.

- Product
- Microsoft Power Automate Desktop, Microsoft Excel, Office Scripts, and Python
- Device & OS
- not provided
- Scenario
- Combine public Excel files and other company data sources into a consistent dataset for matching and API integration.
- Observed behavior
- The desired workflow validates and matches company records using names and telephone numbers, prioritizes reliable matches, and sends the results to the company API.
Identify the source files, required output columns, matching rules, and API authentication and payload requirements. Check that you can use Office Scripts and the Excel Online (Business) connector, and store the workbook in a supported OneDrive for Business or SharePoint location.
Build a company data pipeline with Python, Office Scripts, and Power Automate
Use this approach to standardize source files, compare company records, and coordinate processing across desktop and cloud flows.
Power Automate Desktop can run local preprocessing, while a cloud flow can run an Office Script through the Excel Online (Business) connector. Linking cloud and desktop flows may require additional licensing and configuration.
Use Python to read the public Excel files and map their columns to a shared schema, such as company name, telephone number, and source. Normalize names and telephone numbers while preserving original values for review.
In the Python processing script, check required fields and compare normalized names and telephone numbers. Prioritize matches that agree on both fields, and flag missing or ambiguous matches for review rather than merging them automatically.
Save the structured results to an Excel workbook in OneDrive for Business or SharePoint. In Excel, use Insert > Table to turn the data range into a table that can be processed consistently.
Open the workbook in Excel for the web and select Automate > New Script. Add and test a script that performs the required workbook operations, such as formatting the results table or checking expected columns.
In Power Automate Desktop, create a desktop flow that runs the Python preprocessing command. In Power Automate, create a cloud flow and add Excel Online (Business) > Run script, selecting the workbook and script; configure cloud-to-desktop flow execution if the workflows must run together.
Use a Python API client or an appropriate Power Automate action to send validated results to the company API according to its documented authentication and request format. Check response codes and review failed requests and ambiguous matches before retrying.

Review company spreadsheets with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface. Open compatible Excel files to review and edit company data as you move between office suites; Microsoft Office Scripts and Power Automate workflows remain Microsoft-specific.

Frequently Asked Questions
Can Power Automate Desktop run an Office Script directly?
Use a Power Automate cloud flow with Excel Online (Business) > Run script to run an Office Script. If desktop processing is also needed, configure a cloud flow to run the desktop flow, subject to licensing and setup requirements.
How should company names and phone numbers be matched?
Normalize names and phone numbers in your Python preprocessing script, then compare both fields. Keep original values and flag conflicting or incomplete records for manual review.
Where should the Excel workbook be stored for the Run script action?
Store the workbook in a supported OneDrive for Business or SharePoint location, then select its location and file in the Excel Online (Business) > Run script action.
Can WPS Office run the same Office Scripts and Power Automate flow?
WPS Office can open and edit compatible Excel files, but it does not replace the Microsoft-specific Office Scripts and Power Automate workflow. Use Microsoft Excel and Power Automate for those automation steps.




