From oracle-ai-data-platform-workbench-spark-connectors
Read from Salesforce into a Spark DataFrame in an AIDP notebook via the AIDP `aidataplatform` Spark format handler. Use when the user mentions Salesforce, SFDC, Sales Cloud, Service Cloud, Account, Opportunity, Lead, sObject, SOQL. Auth is host/port + user/password. Read-only.
How this skill is triggered — by the user, by Claude, or both
Slash command
/oracle-ai-data-platform-workbench-spark-connectors:aidp-salesforceThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- User wants to ingest Salesforce data (Account, Opportunity, Lead, Contact, custom sObjects) into a Spark DataFrame from an AIDP notebook.
aidp-salesforce — Salesforce via AIDP aidataplatformaidp-rest-generic.aidp-siebel (Siebel) or Fusion CX via aidp-fusion-rest.sys.path (run aidp-connectors-bootstrap first).SFDC_HOST (Salesforce login host, e.g. login.salesforce.com or <my-domain>.my.salesforce.com)SFDC_PORT (typically 443)SFDC_DATABASE_NAME (org name / database identifier; for most tenants this is just the org name)SFDC_USER (Salesforce username — typically <email>)SFDC_PASSWORD (password concatenated with security token: <password><security-token>)SFDC_SCHEMA (typically SFORCE for the connector)SFDC_TABLE (sObject API name, e.g. Account, Opportunity, Custom_Object__c)import os
from oracle_ai_data_platform_connectors.aidataplatform import (
AIDP_FORMAT, aidataplatform_options,
)
opts = aidataplatform_options(
type="SFORCE",
host=os.environ["SFDC_HOST"],
port=int(os.environ.get("SFDC_PORT", "443")),
database_name=os.environ["SFDC_DATABASE_NAME"],
user=os.environ["SFDC_USER"],
password=os.environ["SFDC_PASSWORD"],
schema=os.environ.get("SFDC_SCHEMA", "SFORCE"),
table=os.environ["SFDC_TABLE"], # e.g. "Account", "Opportunity"
)
df = spark.read.format(AIDP_FORMAT).options(**opts).load()
df.show(10)
Use pushdown.sql to push a SOQL-like query at the source — useful for filtering on indexed fields, joins via relationship paths, or LIMIT semantics.
opts = aidataplatform_options(
type="SFORCE",
host=os.environ["SFDC_HOST"],
port=int(os.environ.get("SFDC_PORT", "443")),
database_name=os.environ["SFDC_DATABASE_NAME"],
user=os.environ["SFDC_USER"],
password=os.environ["SFDC_PASSWORD"],
extra={
"pushdown.sql": (
"SELECT Id, Name, AnnualRevenue, BillingCountry "
"FROM Account "
"WHERE AnnualRevenue > 1000000 AND BillingCountry = 'United States'"
),
},
)
df = spark.read.format(AIDP_FORMAT).options(**opts).load()
df.show(10)
type is SFORCE, not SALESFORCE. Easy to get wrong if you're following the human-readable name. The connector type literally says SFORCE.<password><security-token> concatenated as a single string. The security token is reset each time the user changes their password — emailed to the user.pushdown.sql with selective filters and field projection to minimize calls.__c (e.g. Project__c). Custom fields end in __c too — always include the trailing __c in pushdown.sql.npx claudepluginhub daiiis/claude-code-plugins --plugin oracle-ai-data-platform-workbench-spark-connectorsGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Dispatches multiple subagents concurrently for independent tasks without shared state. Use when facing 2+ unrelated failures or subsystems that can be investigated in parallel.