How to validate a package xml using Metadata API? Similar to what we do with changesets. First we validate, then we deploy. If I need to validate a list of apex classes and vf pages, how can I do so using metadata API?
If you're using ANT, you need to set
checkOnly=true in your
If you're using the sfdx tool with
mdapi:deploy, you can pass the
If you're calling the Metadata API yourself, the DeployOptions on your
deploy() call need to have
checkOnly set to