Configure Your Salesforce Org
Configure a Salesforce org to develop and invoke Functions. Develop functions in scratch orgs with Dev Hub or in sandbox orgs.
Only enable Dev Hub if you want to use scratch orgs. Skip this step if you're using sandbox orgs for development.
A Developer Hub (Dev Hub) org lets you create and manage scratch orgs. A scratch org is a source-driven and disposable deployment of Salesforce code and metadata, made for developers and automation. Enable Dev Hub in a production or Developer Edition org.
Enable Salesforce Functions to create an authenticated connection for requests between your org and Salesforce Functions.
After you enable Salesforce Functions, your sandbox org or any of the scratch orgs created from the enabled Dev Hub has Salesforce Functions enabled and authenticated.
Sandbox orgs that you created from your Dev Hub org before you enabled Salesforce Functions aren't automatically enabled. Enable Salesforce Functions for each of those sandbox orgs.
You can also create compute environments connected to your Dev Hub org, deploy Functions to these compute environments, and invoke them from the org.
- In your org, from Setup, enter Functions in the Quick Find box and select Functions.
Enable Test Space is already enabled in your Salesforce Functions-enabled org.
- This page is available only in orgs that have Lightning Experience enabled.
- If you can’t find the Functions page, contact your Salesforce Administrator and make sure your org has a Salesforce Functions license.
- Toggle Enable Production Space, to connect Salesforce Functions to production orgs. You can’t undo this action.
Verify that developers working with Salesforce Functions have appropriate Salesforce permissions.
We recommend creating and assigning these permission sets.
|Permission Set Name||Lets the user...||Required System Permissions|