From 48df0c53b8ba6afc85b8a04064a386f6fefd84ca Mon Sep 17 00:00:00 2001 From: Sonal Budhiraja <57969266+sbudhirajadoc@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:38:55 -0800 Subject: [PATCH] docs: functions out (#5213) * Update sidebar.yml updated yml sidebar to remove functions * Update overview.md function support change. * Update sidebar.yml functions back in sidebar. * Update overview.md * Update docs/_articles/en/functions/overview.md Co-authored-by: AnanyaJha --------- Co-authored-by: gbockus-sf <76090802+gbockus-sf@users.noreply.github.com> Co-authored-by: AnanyaJha --- docs/_articles/en/functions/overview.md | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) 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