Sandbox creation and use | Actions after sandbox creation and refresh

A sandbox is a copy of your production org, typically used for developing new functionality, testing, and training, without compromising data and processes in your production org. To ensure your sandbox can be used effectively work through the actions on this page and complete those applying to your org.

Refreshing your sandbox

  1. Raise a support case. The support team confirms your current sandbox is not being tested and can be overwritten with the production org configuration. The support team can also help you restore administrator access to the sandbox.

  2. Log in to the sandbox. Use the URL https://test.salesforce.com
    If you cannot access your Sandbox, log a support case.

Actions after refresh

When your Sandbox has been refreshed and you have access, follow the guidance relevant to the type of testing you want to do in the sandbox.

Email scrambling and unscrambling

A working production org can send automated emails to employees, candidates, and outside contacts for a wide range of purposes. Some of the emails are automatically disabled by the sandbox refresh while others are unchanged. Check to make sure your sandbox is behaving as you want it.

Automatic scrambling

Creating or refreshing a sandbox org scrambles email addresses for users set up in the system. This prevents users accidentally sending out emails from the test system and prevents system access for users who do not require it.

A scrambled email address is displayed as:

OR as a standard email address with .invalid appended at the end:

Required unscrambling

When creating or refreshing the sandbox the support team use the Sage People admin user and grant access to the person who requested the sandbox refresh. Before other HR Portal users can access the sandbox, you must unscramble their email addresses to return them to standard email addresses:

[email protected]

To grant other users access to the sandbox, in the sandbox:

  1. Go to Setup and in Quick Find enter Users.

  2. Find the users you want to access the sandbox.

  3. For each user select Edit and correct the email address, returning it to standard form:

    Screenshot showing user edit page with email field highlighted

  4. The user receives an email to confirm the change to their sandbox user record.

  5. The user selects the link in the email to confirm the change.

  6. Reset the user's password as you would for a user change in the production org.

Preventing unwanted emails

There are several actions you can take to stop your sandbox sending unwanted emails. Choose those most appropriate to your planned use of the sandbox.

If your org has the Benefits(US) package installed you must disconnect the sandbox single sign on (SSO) capability from the US Benefits provider, PlanSource, before updating Team Member email details. See US Benefits Single Sign On.

Scramble alternative addresses

Sandbox refresh scrambles the email address registered in the user record but it leaves other team member home and work email addresses unchanged. To prevent unwanted emails to team members, you can complete one or both of the following actions:

  • Run a data load update for the team member object, replacing email addresses with an invalid format, for example by adding .zzz at the end of the email:

    [email protected].

    For more information on Data Loading see Function Focus: Data Loading Using Data Loader.

  • Modify action event settings to unlink the Action Event Pattern from everything except the Test policy.

Disable team member to user synchronization

If you choose not to Scramble alternative addresses Sage People recommends disabling Team Member to User synchronization. If personal or alternative email address fields are included in the Team Member/User Synchronization field set and email deliverability is on, disabling team member to user synchronization stops Sage People from substituting unscrambled alternative email addresses for addresses automatically scrambled by the sandbox refresh.

  1. Go to Setup and in Quick Find enter Installed Packages.

  2. Find Sage People Human Capital Management and select Configure

  3. On the Configure page find Team Member to User Synchronization and select None:

    Screenshot showing HCM configure page with Team member to user synchronization field set to none

Restrict email deliverability

To stop the sandbox sending emails during testing and additional configuration:

  1. Go to Setup and in Quick Find enter Deliverability

  2. For Access level select the picklist and choose System email only:

    Screenshot showing email deliverability page with access level set to system email only

    Do not select No access. No access prevents verification code and password reset emails being sent, and can result in complete loss of access.

  3. Select Save.

Modify action event settings

To stop Action Events sending unwanted emails from your sandbox you can change the configuration of individual Action Events or by unlinking Action Event Patterns from policies.

You can amend Action Events configured to Send To Email Addresses either by removing the email addresses or changing them to send to a test user.

If you are testing specific functionality you can prevent unwanted emails by unlinking the Action Event Pattern from all policies except the policy associated with your testing.

To unlink the Action Event Pattern:

  1. Select the Policies tab.

  2. On the Policies home page select to view All.

  3. Ensure the view includes the Action Event Pattern field and if it does not, select List View Controls > Select Fields to Display and add the field to the view.

  4. Select all policies except the policy you are using for testing.

  5. In the Action Event Pattern field for one of the selected policies double click:

    Partial screenshot showing all policies view with Action Event Pattern field selected

    Sage People displays the Action Event Pattern dialog:

    Screenshot showing the action event pattern dialog

    Note If the Action Event Pattern dialog is not displayed, check the Action Event Pattern field on the Policies list view is showing the Edit pencil and not a lock. If the field displays a lock, ensure the Action Event Pattern field is added to the Policy Layout page layout; the field must be included on the page layout to make it editable on the list view.
  6. In the Edit Action Event Pattern dialog clear the Action Event Pattern field by selecting the X to make it blank. You are going to remove all Action Event Patterns from all policies except the policy you are using for testing.

  7. Select the checkbox to update all selected items.

  8. Select Apply.

    The Action Event Patter column is highlighted for all selected policies. Ensure the selection is as you want it.

  9. Select Save.

Action Event Patterns are now unlinked from your policies.

Modify action role email addresses

Action roles configured to send to a designated email account rather than the email address associated with a user record must be changed to remove the email address or to use an email address associated with a test account. Action roles typically use a group email account accessible by a number of people.

Action roles are displayed in a related list on HR Department and Work Location detail pages. Select an Action role to display details and select Edit for the action role to change the associated email.

Modify workflows, process builders, and flows

Ensure all workflows, process builders, and flows configured to send emails are deactivated, or change the email addresses to a test user.

Disable Action Digest

When creating a Sandbox, Deliverability is off by default. With Deliverability off and email addresses scrambled, you can leave Installed Package settings, including the Action Digest send time, as they are.

If Deliverability for your sandbox is set to All Email and team member addresses remain unscrambled:

  1. Go to Setup and in Quick Find enter Installed Packages.

  2. Find Sage People Human Capital Management and select Configure.

  3. On the Configure page find Fairsail Digest Send Time, select the picklist and choose Not Active.

  4. Select Save.

Scramble candidate email addresses

If your org includes Sage People Recruit, ensure Candidate email addresses are deleted or scrambled to prevent unwanted emails during sandbox testing.

Connected apps and API integrations

Connected apps and API integrations built in your production environment are not copied to your sandbox during sandbox creation or refresh. If you want to use the sandbox to test these integrations you must reconfigure them.

Salesforce sites

Salesforce changes sites URLs when your sandbox is created, but your org configuration still references the production Site URLs. This can affect:

  • Request Prefix in HCM and Recruit form definitions

  • PDF Templates

To change Site Links in HCM Forms:

  1. Go to Setup and in Quick Find enter Sites.

  2. On the Sites page copy the Site URL for HCM Forms.

    For example http://sandbox-companyname-hr.force.com/hr

  3. Select the HCM Form Definitions tab and on the HCM Form Definitions page select to view All.

  4. Select the first form Definition Name.

    Sage People displays the HCM Form Definition page.

  5. In the Form Definition Details section select XML Edit.

  6. Paste the copied Site URL in Request Prefixfield and add / (forward oblique) at the end.

  7. Select Save.

  8. Repeat for all configured HCM Forms.

If you are using Recruit, repeat for the Recruit forms Sites URL. You can find Recruit form definitions listed on the Form Definitions tab.

To change Site links in HCM PDF Templates:

  1. Go to Setup and in Quick Find enter Sites.

  2. On the Sites page copy the Site URL for PDF templates.

    For example http://sandbox-companyname-hr.cs39.force.com/PDF

  3. Go to Setup and in Quick Find enter Installed Packages.

  4. Find Sage People Human Capital Management and select Configure

  5. On the Configure page find Sites URL and paste the copied value.

  6. Select Save.

To change Site links in Recruit PDF Templates:

  1. Go to Setup and in Quick Find enter Sites.

  2. On the Sites page copy the Site URL for Recruit PDF templates.

    For example http://sandbox-companyname-hr.cs39.force.com/RecruitPDF

  3. Go to Setup and in Quick Find enter Installed Packages.

  4. Find Sage People Recruit and select Configure.

  5. On the Overall tab find Base URL and paste the copied value.

  6. Select Save.

Static resources

To ensure static resources are visible in your sandbox check static resources used by:

  • Internal Communications

  • Stylesheets

  • HR Noticeboards

If the resource URL includes /resource after ...force.com you need take no further action because the URLs are dynamically updated.

Static resources with other forms of URL may not be dynamically updated and need uploading to ensure they are visible in your sandbox.

To display the static resource URL:

  1. Go to Setup and in Quick Find enter Static Resources.

  2. Select the resource name.

  3. On the Static Resource Detail page select View File.

  4. The static resource is displayed in a new browser tab with the URL:

    Partial screenshot showing a static resource with the URL highlighted

US Benefits Single Sign On

If your org has the Benefits(US) package installed you must disconnect the sandbox single sign on (SSO) capability from the US Benefits provider, PlanSource, before updating Team Member email details. Disconnecting prevents the sandbox from updating the PlanSource production environment with invalid details and interrupting SSO.

To disconnect PlanSource single sign on:

  1. In the App Launcher select Benefits(US)

  2. Select the Settings tab.

  3. On the Settings page:

    • Change Client Id to N/A

    • Change Client Secret to N/A

    • In the Single Sign-On Settings section, Employee SSO Start Point, delete the openid numbers at the end of the field.

  4. Select Save.

Configuration before making updates:

Screenshot: View of Configuration before making updates

Configuration after making updates:

Screenshot: View after making updates

Note

To completely remove the Plan Source Sync URL, remove all text within Employee SSO Start Point field box and select Save.

Payflow exports

If you have Payflow services configured to export data you can disable the services so that they do not run on your sandbox.

To find which services are likely to need disabling:

  1. Select the Payflow Services tab.

  2. Select a view to display all services and ensure the display includes these fields:

    • Batch Start Cron Command

    • Outgoing Server

    • Outgoing Emails

Disable exports for Payflow services with values in any of these fields.

To disable Payflow exports:

  1. On the Payflow Services list view select the name of a service with a value in any of these fields:

    • Batch Start Cron Command

    • Outgoing Server

    • Outgoing Emails

  2. On the Payflow Service Console select Configure.

  3. On the Payflow Configure page scroll to the SFTP Credentials section at the bottom of the page.

  4. Delete the Username and select Update Credentials.

  5. Scroll up the Payflow Configure page and select Download Configure.

  6. On the Download Configure page:

    • Scroll to the Automatic Processing section and delete the value from Batch Start Cron Command.

    • In the Managed File Transfer section delete the value from Outgoing Server.

  7. Select Save.

Note

If there are multiple payflows, you can disable payflow exports by using Data Loader and exporting from the Payflow Service Object (fpay__Payroll_Service__c ) with the following query:

  • Select Id, fpay__Outgoing_Server__c, fpay__Batch_Start_Cron__c FROM fpay__Payroll_Service__c

Remove all values except for ID field and upload to the org using "Insert Nulls"