Salesforce Functions: Extend Salesforce with Functions (Beta)

Salesforce Functions lets developer extend Salesforce with custom, elastically scalable business logic built with high-productivity programming languages and open-source components. Salesforce Functions reduces your infrastructure responsibilities, enabling you to build and integrate Functions-as-a-Service (FaaS) apps using the languages and tools of your choice.


As a beta feature, Salesforce Functions is a preview and isn’t part of the “Services” under your master subscription agreement with Salesforce. Use this feature at your sole discretion, and make your purchase decisions only on the basis of generally available products and features. Salesforce doesn’t guarantee general availability of this feature within any particular time frame or at all, and we can discontinue it at any time. This feature is for evaluation purposes only, not for production use. It’s offered as is and isn’t supported, and Salesforce has no liability for any harm or damage arising out of or in connection with it. All restrictions, Salesforce reservation of rights, obligations concerning the Services, and terms for related Non-Salesforce Applications and Content apply equally to your use of this feature. You can provide feedback and suggestions for Salesforce Functions in the Salesforce Functions Trailblazer Community. For information on enabling this feature in your org, contact Salesforce.

This change applies to Lightning Experience, Salesforce Classic, and all versions of the mobile app in Professional, Performance, Unlimited, and Developer editions.

When: The Salesforce Functions beta is planning to open after the release of Salesforce Spring ’21. Look for further announcements and details on and in the Salesforce Functions Trailblazer Community.

Why: A Function is your code, run on demand, in the Salesforce Functions trusted compute cloud. Run complex business logic code, written using your preferred languages and frameworks. Salesforce Functions are fully managed by the Salesforce Platform, which takes care of everything else necessary to invoke your code in a secure, multi-tenant aware, and auto-scaling environment.

How: Write JavaScript or TypeScript code that uses the Salesforce Functions Node SDK to communicate with your org. Deploy your Function in the Salesforce Functions compute cloud with the Salesforce CLI. Then, invoke your Function using Apex, and the Salesforce Functions infrastructure authenticates and runs your Function on demand.