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.

Register for a Salesforce Functions trial and gain free access to Functions.

1. Discover

Learn when and why to use Salesforce Functions.

2. Set Up

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

3. Develop

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.

4. Deploy & Invoke

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

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.