Update DSN connection strings inside xlsx files.

Parameters:
See dedicated page for more information.
updateExcelConnectionString is a scripted action. Embedded code is accessible and customizable through this tab.
See dedicated page for more information.
The updateExcelConnectionString action updates DSN strings and SQL command strings within .xlsx (Excel) files. This is particularly useful when migrating Excel files across environments (e.g., dev → prod), or when batch-modifying database connections without manually opening each file.
Note: At least one of the
DSNorCOMMANDstring pairs must be filled to trigger an update.
Prepare an .xlsx file containing an embedded connection string like MyOldDSN.
C1
assets/example_with_dsn.xlsx
The action updates the specified .xlsx file and generates an output table with a status flag:
| C1 | _statusExcelUpdated |
|---|---|
| assets/example_with_dsn.xlsx | 1 |
- Notes:
- Only .xlsx files are supported.
- If both idDSNBefore and idCOMBefore are left empty, no changes will be made.
- This action uses text-based find & replace inside the Excel connection XML.
- The input file must have a valid embedded data connection for the update to succeed.
