What is the best way to open a sharepoint excel file locally and run its macro for unattended processes?
I have seen some activities that look like StudioX activities such as excel.activities.business
We currently are using excel process scope and face a synhcronization issue, the excel data is not updated as fast as we would need it and we cannot run the macro with out of date data
Hi @adext01 , Best Practice for Unattended Automation
Use Microsoft 365 / SharePoint activities to download the Excel file locally from SharePoint before processing.
Open the downloaded file with Excel Application Scope (desktop Excel), not Workbook activities, since macros require Excel to be installed.
Refresh/save any required data first.
Run the macro using Execute Macro activity.
Save and close the workbook.
Upload the updated file back to SharePoint if needed.
To avoid synchronization issues
Download a fresh copy from SharePoint immediately before running the macro.
If multiple users/processes update the file, implement a file lock/check-in/check-out mechanism or process the file during dedicated time windows.
Add a short validation step to confirm the latest data is present before executing the macro.
Regarding Excel.Activities.Business
These StudioX activities are useful for business users, but for unattended macro execution, Excel Application Scope + Execute Macro is generally the most reliable and commonly used approach.