---
schema_version: "1"
id: 3493bb68455c0dd820a37018eeee18cf046cc443bfaea9b5a96213db46115173
title: Get Started with Salesforce Functions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforce-functions/functions/guide/index.md
canonical_url: https://developer.salesforce.com/docs/platform/functions/guide/index.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: d5467bb0e9ce4fb22e33c81be8ddc532a625a6f97b8211447e7dc3c7ecb1e554
products:
  - Salesforce Functions
---
# 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.

**tip:** Contact your account executive to sign up for a free trial.

## 1. Discover

Learn when and why to use Salesforce Functions.

- [Overview of Salesforce Functions Architecture](https://developer.salesforce.com/docs/platform/functions/guide/overview.md)
- [Salesforce Functions: Quick Look](https://trailhead.salesforce.com/en/content/learn/modules/salesforce-functions-quick-look)
- [Salesforce Developers Blog Post: Salesforce Functions is Generally Available](https://sfdc.co/functions-ga-post)
- [Heroku Blog Post: Heroku Data in Salesforce Functions](https://blog.heroku.com/data-in-functions)
<!-- (TBD) [Video: Write your business logic using Salesforce Functions](https://developer.salesforce.com/docs/platform/functions/guide/overview.md) -->

## 2. Set Up

Before you can develop a Salesforce Function, configure your development environment.

- [Set Up Your Development Environment](https://developer.salesforce.com/docs/platform/functions/guide/set-up.md)

## 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.

- [Quick Start: Develop and Deploy a Function](https://developer.salesforce.com/docs/platform/functions/guide/quick-start/quick-start.md)
- [Developer Guide: Develop a Function](https://developer.salesforce.com/docs/platform/functions/guide/dev-guide/dev-guide-intro.md)
- [Functions Recipes](https://sfdc.co/functions-recipes)
<!-- (TBD) [Trailhead: Build a JavaScript Function](https://developer.salesforce.com/docs/platform/functions/guide/getting-started/gs_intro.md)
- (TBD) [Trailhead: Build a Java Function](https://developer.salesforce.com/docs/platform/functions/guide/getting-started/gs_intro.md) -->

## 4. Deploy & Invoke

Learn how to invoke Salesforce Functions in a Salesforce org. You can invoke functions you've created and functions developed by third-party ISVs.

**important:** 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](https://developer.salesforce.com/docs/platform/functions/guide/dev-guide/invoke-apex.md#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.

- [Quick Start](https://developer.salesforce.com/docs/platform/functions/guide/quick-start/quick-start.md)
- [Developer Guide: Deploy a Function](https://developer.salesforce.com/docs/platform/functions/guide/dev-guide/deploy.md)
- [Developer Guide: Invoke a Local Function](https://developer.salesforce.com/docs/platform/functions/guide/dev-guide/invoke-local.md)
- [Developer Guide: Invoke a Function with Apex](https://developer.salesforce.com/docs/platform/functions/guide/dev-guide/invoke-apex.md)
- [Developer Guide: Use Heroku Data to Manage Data Across Invocations](https://developer.salesforce.com/docs/platform/functions/guide/dev-guide/patterns-and-practices.md#understand-function-state-across-invocations)
<!-- - (TBD) [Trailhead: Using Functions in Your Org](https://developer.salesforce.com/docs/platform/functions/guide/getting-started/gs_intro.md) -->
