diff --git a/docs/_articles/en/functions/overview.md b/docs/_articles/en/functions/overview.md index a52776bf70..d13741066a 100644 --- a/docs/_articles/en/functions/overview.md +++ b/docs/_articles/en/functions/overview.md @@ -5,34 +5,16 @@ lang: en ## Salesforce Functions -Use the Salesforce Functions features in VS Code to build event-driven, elastically scalable apps and experiences. You can create and test functions against sample payloads locally in VS Code. +The Salesforce Extension Pack no longer supports Salesforce Functions. We're listing equivalent CLI commands that you can use to create and start a Function. ### Create Function -Run `SFDX: Create Function` to create a Salesforce Function in Javascript, Typescript, or Java in a Salesforce DX project. - -This command creates a new directory named after your Function name and all the supporting files. - -- VS Code creates the basic scaffolding that contains files with some rudimentary, boilerplate code and supporting metadata. -- The `package.json` file contains information about dependencies. - -![Create Function](./images/vs_code_create_func.gif) +See [generate function](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_generate_commands_unified.htm#cli_reference_generate_function_unified). ### Start Function -Run `SFDX: Start Function` to run the function locally. - -### Invoke Function - -The Salesforce extensions add the `Invoke` and `Debug Invoke` CodeLens to a file that is in the correct format to send test events to a Function that is running locally. With one click, you can test a function that is running, by invoking it with a mock payload. You can also debug the function against the payload. - -A sample `payload.json` file that can invoke a function: - -![Invoke Debug ](./images/vscode_func_payload.png) - -### Stop Function +See [run function start](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_run_commands_unified.htm#cli_reference_run_function_start_unified) -Stop a function by running `SFDX: Stop Function`, which simply kills the local process. ### Resources