Configure Your Salesforce Org
Configure a Salesforce org to develop and invoke Functions.
Enable Dev Hub
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, sandbox, or Developer Edition org.
Enable Salesforce Functions to create an authenticated connection for requests between your org and Salesforce Functions.
After you enable Functions, every scratch or sandbox org created from this Dev Hub org has Functions enabled and authenticated.
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.
This page is available only in orgs that have Lightning Experience enabled.
Click Enable Functions.
In the Salesforce login page, enter your Dev Hub admin login username and password.
The connection process can take a few minutes.
If the connection process isn't successful, click Try Again, or contact Salesforce.
To use sandbox and scratch orgs, select Enable Test Space.
To connect Functions to production orgs, select Enable Production Space.
Sandbox orgs that you created from your Dev Hub org before you enabled Functions aren't enabled for Functions. Enable Functions for each of those sandbox orgs.
Permission Sets for Functions Developers
Verify that developers working with Functions have the correct Salesforce permissions.
We recommend creating and assigning these permission sets.
|Permission Set Name||Lets the user...||Required System Permissions|
Configure Session Timeout Settings
Set session timeout to at least 15 minutes to ensure that invoked functions complete execution. See Modify Session Security Settings.