You need to identify each environment you intend to deploy data to and/or from, and grant Prodly access to the environments.
- On the Environments page, click Add Environment.
- In the Name box, enter a name for the environment card.
- Select a Label (optional) or create a new label.
- In the Environment Type list, select the type of the Salesforce environment. There are 3 types available when adding an environment: Sandbox, Scratch Org, and Production.
- Optionally, you can select a repository branch to connect to from your linked version control system after enabling the toggle. You can either create a new branch or select an existing branch after selecting a source. Refer to Manage an Environment with Version Control for more information.
- On the Salesforce login page that appears, enter your Salesforce login credentials.
- Click Allow.
- Optionally, you can select Advanced Options by clicking Show advanced options.
Advanced Environment Options
Use Custom Domain
If needed, you can toggle Use Custom Domain on to enter a custom Salesforce My Domain URL, i.e. https://domain.my.salesforce.com.
Use JWT
Using the JWT OAuth flow solves the issue of having to reauthenticate environments after a sandbox refresh and/or when using Salesforce DX, but you cannot use JWT to set schema settings.
To authenticate using the JSON web token (JWT) OAuth flow:
- First install the Prodly Deployment connected app.
- When adding a new environment, click the Show advanced options link.
- Toggle on the Set up JWT button.
Refer to Create a Scratch Org and Create an Environment from a Change Type for alternative Environment creation methods.