export_solution
Exports an unmanaged or managed Dynamics 365 solution to a new local ZIP file; preview first, then execute with a plan hash to write validated output without overwriting.
Instructions
Preview by default. Native ExportSolution from a visible ordinary unmanaged source; choose managed output explicitly. Current CSDL and caller/environment identity are validated. Execute with planHash; writes an exclusive new local .zip, verifies identity/hash, never returns base64 or overwrites files. No publish. On failure the reserved path can be empty/partial; no automatic replay.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Default true. Execution requires a current preview planHash. | |
| dry_run | No | Default true. Execution requires a current preview planHash. | |
| managed | No | ||
| outputPath | No | Absolute local file path. ZIPs are read without extraction or execution. | |
| output_path | No | Absolute local file path. ZIPs are read without extraction or execution. | |
| expectedHash | No | ||
| expected_hash | No | ||
| solutionUniqueName | No | ||
| environment_profile | No | Optional named environment profile for this call; omit to use the configured default. | |
| solution_unique_name | No |