12.07.2015 Views

Database.com Metadata API Developer's Guide - Salesforce.com

Database.com Metadata API Developer's Guide - Salesforce.com

Database.com Metadata API Developer's Guide - Salesforce.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Deploying and Retrieving <strong>Metadata</strong>Maintaining User ReferencesMaintaining User ReferencesUser fields are preserved during a metadata deployment.When a <strong>com</strong>ponent in your deployment refers to a specific user, such as a recipient of a workflow email notification or adashboard running user, then <strong>Database</strong>.<strong>com</strong> attempts to locate a matching user in the destination organization by <strong>com</strong>paringusernames during the deployment.For example, when you copy data to a test database, the fields containing usernames from the production organization arealtered to include the test database name. In a test database named test, the username user@acme.<strong>com</strong> be<strong>com</strong>esuser@acme.<strong>com</strong>.test. When you deploy the metadata in the test database to another organization, the test in the usernameis ignored.For user references in deployments, <strong>Database</strong>.<strong>com</strong> performs the following sequence:1. <strong>Database</strong>.<strong>com</strong> <strong>com</strong>pares usernames in the source environment to the destination environment and adapts the organizationdomain name.2. If two or more usernames match, <strong>Database</strong>.<strong>com</strong> lists the matching names and requests one of the users in the sourceenvironment be renamed.3. If a username in the source environment doesn’t exist in the destination environment, <strong>Database</strong>.<strong>com</strong> displays an error, andthe deployment stops until the usernames are removed or resolved to users in the destination environment.20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!