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,266 stars 315 forks Updated today 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
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

salesforce-core-workflow-a

Execute Salesforce CRUD operations on standard sObjects with SOQL and REST API. Use when creating, reading, updating, or deleting Accounts, Contacts, Leads, or Opportunities via the Salesforce API. Trigger with phrases like "salesforce CRUD", "salesforce create record", "salesforce update account", "salesforce SOQL query", "salesforce REST API".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-install-auth

Install and configure Salesforce SDK/CLI authentication with jsforce or Salesforce CLI. Use when setting up a new Salesforce integration, configuring OAuth flows, or initializing Salesforce connectivity in your project. Trigger with phrases like "install salesforce", "setup salesforce", "salesforce auth", "configure salesforce", "jsforce setup", "sf cli login".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-sdk-patterns

Apply production-ready Salesforce jsforce patterns for TypeScript and Python. Use when implementing Salesforce integrations, refactoring SDK usage, or establishing team coding standards for Salesforce. Trigger with phrases like "salesforce SDK patterns", "jsforce best practices", "salesforce code patterns", "idiomatic salesforce", "salesforce typescript".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-common-errors

Diagnose and fix Salesforce common errors, SOQL issues, and API exceptions. Use when encountering Salesforce errors, debugging failed requests, or troubleshooting integration issues. Trigger with phrases like "salesforce error", "fix salesforce", "salesforce not working", "debug salesforce", "SOQL error", "salesforce exception".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesloft-hello-world

Create a minimal working SalesLoft example — list people and create a person. Use when starting a new SalesLoft integration, testing your setup, or learning the People and Cadences API patterns. Trigger: "salesloft hello world", "salesloft example", "salesloft quick start".

2,266 Updated today
jeremylongshore