Newer Version Available

This content describes an older version of this product. View Latest

Move Metadata to a Sandbox at Integration Points

During development, use Metadata API to move metadata to sandboxes for integrating changes, testing, and collaborating with your team.

After developing on your own in a scratch org or your local file system, combine work from your team at integration points in a sandbox. Sandboxes are development environments that you can use to integrate and test changes from multiple developers. Admins often create and assign sandboxes. To create a sandbox on the Salesforce UI, navigate to Setup. Next, in the Quick Find box, search for sandboxes.

You have several levels of sandboxes to choose from with differing amounts of data. The Developer sandbox and Developer Pro sandbox are development environments where you build customizations and test changes on fictional data. The Partial Copy sandbox and Full sandbox are testing environments loaded with copies of production data. Move metadata to different sandboxes with a Metadata API deploy command depending on your development and testing needs.

Outside of Metadata API, admins typically use change sets to send customizations from one sandbox to another. Unlike Metadata API calls, you must build change sets manually. To add components to a continuous integration system more easily, you can automate Metadata API calls on Salesforce CLI.