MetadataDeploy
Deploys metadata components to a Salesforce organization, enabling changes to object structures and configurations.
Input
| Name | Type | Description |
| FullPath | String | The full file path to the ZIP archive containing the metadata components to be deployed. For example: C:/Users/admin/Documents/deployment.zip. |
| AllowMissingFiles | String | If set to 'true', allows deployment to proceed even if some files listed in package.xml are not present in the ZIP archive. Defaults to 'false'. |
| AutoUpdatePackage | String | If the value is 'true', automatically includes files found in the ZIP archive but not specified in package.xml by issuing a MetadataRetrieve call to generate an updated package.xml. Defaults to 'false'. |
| IgnoreWarnings | String | If the value is 'true', allows the deployment to complete even if warnings are returned. Not recommended for production deployments. Defaults to 'false'. |
| RollbackOnError | String | If the value is 'true', rolls back the entire deployment if any error occurs. Defaults to 'false'. |
| RunAllTests | String | If the value is 'true', all Apex tests in the org are executed after deployment, including tests from managed packages. Defaults to 'false'. |
| RunTests | String | A list of specific Apex test classes to run during deployment. Use fully qualified class names with namespace prefix if applicable. Requires testLevel to be set to RunSpecifiedTests. |
| SinglePackage | String | If the value is 'true', indicates the ZIP archive contains a single package structure rather than multiple packages. Defaults to 'false'. |
| TestLevel | String | Defines which Apex tests are executed during deployment. Options: 'NoTestRun', 'RunSpecifiedTests', 'RunLocalTests', or 'RunAllTestsInOrg'. |
Result Set Columns
| Name | Type | Description |
| JobId | String | The unique job ID assigned to the deployment operation. |
| Success | String | Indicates whether the deployment completed successfully (true) or failed (false). |
| Status | String | The current status of the deployment job, such as InProgress, Succeeded, or Failed. |
| IgnoreWarnings | String | Echoes whether the deployment proceeded despite warnings. |
| NumberComponentErrors | String | The total number of metadata components that failed to deploy due to errors. |
| NumberComponentsDeployed | String | The number of metadata components that were successfully deployed. |
| NumberComponentsTotal | String | The total number of metadata components included in the deployment request. |
| NumberTestErrors | String | The number of Apex tests that failed during deployment. |
| NumberTestsCompleted | String | The number of Apex tests that completed execution during deployment. |
| NumberTestsTotal | String | The total number of Apex tests run during deployment. |