Get Started with Salesforce Functions

To get started building your own Salesforce Functions, follow the developer workflow and choose resources that match your learning style.

Contact your account executive to sign up for a free trial.

Learn when and why to use Salesforce Functions.

Before you can develop a Salesforce Function, configure your development environment.

Now comes the fun part—developing your own function.

Develop your function using the programming language of your choice–JavaScript or Java. When you're ready to test, run your function locally and validate it using scratch or sandbox orgs.

Use these resources to build example Functions from scratch, in no time.

Learn how to invoke Salesforce Functions in a Salesforce org. You can invoke functions you've created and functions developed by third-party ISVs.

Salesforce Functions are public by default, which means that you can access a function only within the same namespace. Conversely, you can access functions across namespaces when you set your functions to global. See Get Function Reference for more.

Deploy your developed function to the Salesforce Functions infrastructure. Use Salesforce Functions compute environments to manage your function's application lifecycle. Integrate functions into your CI/CD system as needed.

Invoke your deployed function in your sandbox or production org. Use Apex to securely offload heavy compute tasks to your functions without worrying about Salesforce org limits. Through Apex, you can invoke a function in your Salesforce application workflow via Flow, Lightning Web Components, or many other Salesforce features.