salesforce-hello-world

Featured

Create a minimal working Salesforce example with SOQL queries and sObject CRUD. Use when starting a new Salesforce integration, testing your setup, or learning basic Salesforce API patterns. Trigger with phrases like "salesforce hello world", "salesforce example", "salesforce quick start", "first salesforce query", "salesforce SOQL".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Salesforce Hello World ## Overview Minimal working example: connect to Salesforce, run a SOQL query, and perform basic CRUD on standard sObjects (Account, Contact, Lead). ## Prerequisites - Completed `salesforce-install-auth` setup - jsforce installed (`npm install jsforce`) - Valid credentials in environment variables ## Instructions ### Step 1: Connect and Query Accounts ```typescript import jsforce from 'jsforce'; const conn = new jsforce.Connection({ loginUrl: process.env.SF_LOGIN_URL || 'https://login.salesforce.com', }); await conn.login( process.env.SF_USERNAME!, process.env.SF_PASSWORD! + process.env.SF_SECURITY_TOKEN! ); // Your first SOQL query — fetch 5 Accounts const result = await conn.query( "SELECT Id, Name, Industry, AnnualRevenue FROM Account LIMIT 5" ); console.log(`Total records: ${result.totalSize}`); for (const account of result.records) { console.log(` ${account.Name} — ${account.Industry ?? 'N/A'}`); } ``` ### Step 2: Create a Record ```typescript // Create a new Account const newAccount = await conn.sobject('Account').create({ Name: 'Acme Corporation', Industry: 'Technology', Website: 'https://acme.example.com', NumberOfEmployees: 250, }); console.log('Created Account ID:', newAccount.id); console.log('Success:', newAccount.success); ``` ### Step 3: Read a Record by ID ```typescript // Retrieve specific fields by record ID const account = await conn.sobject('Account').retrieve(newAccount.id); console.log('Account Name...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category