Salesforce Sandbox Setup Considerations
When setting up a Salesforce sandbox environment, it is essential to consider specific factors to ensure adequate testing and development while maintaining data integrity and security.
Here are some key considerations:
Servers and IDs
Each sandbox and production org has a unique org ID. When a sandbox is created or refreshed, Salesforce creates an org, and the org ID changes each time. In places where the org ID is used, such as metadata and text values, Salesforce replaces the old sandbox org ID with a new one.
To find the org ID for the current org, you can go to Setup and search for "Company Information" in the Quick Find box. A hardcoded org ID should be updated with the current ID for the sandbox to ensure that scripts or processes, such as test scripts or Web-to-Lead, work properly.
Salesforce creates sandbox orgs on multiple instances, and when a sandbox is created or refreshed, it is assigned to a specific instance, which can cause sandboxes to appear on different URLs.
When data is copied to a sandbox, the object IDs for records are also copied. However, object IDs do not synchronize between the production org and sandbox, and the sandbox and production org act independently. Any objects created in the production org after the sandbox is created or refreshed will not be synchronized into the sandbox, and the same goes for any new objects created in the sandbox, which will not be synchronized back to the production org.
Users and Contacts
User information is included in a sandbox copy or refresh for all sandbox types.
Please note that all Salesforce usernames must be unique and reference a single org. Therefore, usernames are modified to ensure uniqueness as they are copied. The copy process follows these steps for each username.
Firstly, the sandbox name is appended to the username. This means the username user@acme.com for a sandbox named test will become user@acme.com.test.
If the resulting username is still not unique, a second modification is performed in which some characters and digits are prepended to the modified username. This second modification results in a username such as 00x7Vquser@acme.com.test.
You will log in to the corresponding sandbox when you log in with the modified username. Please note that the copy process doesn't copy Contact data to Developer or Developer Pro sandboxes. Therefore, Customer Portal users aren't copied.
However, the copy process does copy the Customer Portal licenses. You can create Customer Portal users in Developer or Developer Pro sandboxes.
When you create or refresh a sandbox, user email addresses are modified so that production users don't receive automatically generated email messages from the sandbox. User email addresses are appended with .invalid, which ensures that the system ignores them.
For example, a user email of awheeler@universalcontainers.com in production becomes awheeler@universalcontainers.com.invalid when migrated to a sandbox. If you want sandbox users to receive automatically generated emails as part of testing, you can correct the email addresses while logging in.
Please note that return email addresses set in users' Email Settings in production aren't appended with .invalid in the sandbox. When you change a Salesforce user's email address in a sandbox, other ones in Salesforce aren't updated. Delete or invalidate non-user email addresses in sandboxes to avoid sending spam. Change contact email addresses to testers or automated scripts when testing outbound emails.
Each sandbox user’s account email must be verified before that user's account can send an email from Salesforce.
Email Deliverability
By default, new and refreshed sandboxes use the System email-only setting. Sandboxes created before Spring ’13 default to All email.
No access—Allows only password reset emails. It prevents all other outbound emails from being sent to and from users.
System email only—Allows automatically generated emails, such as new user and password reset emails.
All email—Allows all types of outbound email. Default for new orgs that aren’t sandboxes.
The System email-only setting is useful for controlling emails sent from sandboxes so that testing and development work doesn’t send test emails to your users.
For more information Please access Sandbox Setup Considerations
Comments
Post a Comment