Salesforce SDK for Node.js Functions

note: Any use of the Service is subject to the applicable Services Terms provided at Agreements and Terms.

Use the Salesforce SDK for Node.js Functions to develop Functions in TypeScript.

Use the Salesforce SDK for Node.js Functions

See Set Up Your Development Environment.

Example Function

This JSON is a sample package.json file.

{
  "name": "nodejs-example-function",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "yahoo-stock-prices": "^1.1.0"
  }
}

This code is a sample index.js file.

import { getCurrentData } from "yahoo-stock-prices";

export default async function (event, context, logger) {
  logger.info("I'm logging stuff!");
  return getCurrentData("CRM");
}

Interfaces

Type Aliases