Creating a dev environment
Salesforce provides two types of dev environments:- Developer accounts: These are free Salesforce accounts that you can use to build and test your integration. Youâll need to manually replicate your production data model in your dev account.
- Sandboxes: These are full or partial copies of your production Salesforce account purpose-built for replicating your production data for testing and development. Sandboxes arenât included in all Salesforce plans, but are available for purchase.
Creating a Salesforce developer account
Follow these steps to create a Salesforce developer test account:- Navigate to the Salesforce Developer signup page: https://developer.salesforce.com/signup
- Fill out the form to create your developer account. We recommend using an email alias (e.g. eric+dev@sequin.io) when creating your dev account so it doesnât conflict with your production login.
- Once your developer accounts is created, youâll login to the account like any other Salesforce instance. This account will have a unique Salesforce subdomain and includes trial access to all enterprise features.
- Now, configure this dev account to replicate your production Salesforce account. You can do this by manually creating the same objects and fields in your dev account as you have in your production account. Or, you can use a tool like Salesforce Data Loader to import a subset of your production data into your dev account.
Creating a Salesforce sandbox
While Salesforce developer accounts are free, you have to manually replicate your production data model to your developer account. Salesforceâs sandboxes act as a replica of your production Salesforce account. You can replicate a full or partial copy of your production Salesforce data. Importantly, sandboxes make it easy to keep custom objects and fields in-sync between sandboxes and the production account.Sandboxes are not available on all Salesforce licenses. If you donât see the option to create a sandbox in your Salesforce account, you may need to upgrade your Salesforce plan.
- In your Salesforce account, navigate to Setup page by clicking the gear icon.
- In the left sidebar menu, select Sandboxes. Then click the New Sandbox button.
- Enter the name of the sandbox - we recommend naming the sandbox to reflect the purpose of your sandbox (i.e. âSequin Dev Sandboxâ).
- Select the data you want to include in the sandbox. We recommend including a subset of data to make it easier to test your integration.
- Click the Create button to create your sandbox. This may take a few minutes.
sequin-dev-sandbox.cs123.salesforce.com
). This is how youâll differentiate your sandbox from your production Salesforce account.
Creating a dev sync
With your Salesforce test account or Sandbox ready to use, you can now create your Sequin sync. When connecting Salesforce to Sequin, youâll enter the subdomain for the developer account or sandbox your just created. To help you delineate between your production and development syncs, you can tag your sync as âdevâ in the sync configuration. From here, build your integration as you normally would. Working with development data will make it easier for you to create, update, and delete records without any possibility of breaking or corrupting production data. As you build, note down any new objects or properties you create, as youâll need to create these in your production Salesforce account as well. If your using a sandbox, you can deploy changes from your sandbox to production using several different methods.Move to production
Once your integration is built and tested, you can move your integration to production. To do this, youâll copy your dev syncâs configuration to a new sync that points to your production Salesforce account and production database:- Login to your production Salesforce account and create any new tables or columns you created in your development base or deploy your sandbox changes to production.
- In Sequin, create a new Salesforce sync that points to your production Salesforce account and connects it to the database youâll use in production.
- When mapping your tables and columns in the Sequin console, you can copy the mapping from your development sync to your production sync by clicking the Copy config from button. This will ensure that your production sync is configured the same way as your development sync.
- Once your production sync is configured, Sequin will backfill your production database with data from your production Salesforce base and keep it in sync.
- With your database migration complete, you can now merge and deploy your branch into production.