Agent skill

Field Service Sobject Create Configure

by forcedotcom in forcedotcom/sf-skills

Headless 360 REST API deployment step for creating sObject records.

Apache-2.0Auto-check passedBackend & APIs

Install Field Service Sobject Create Configure

skills CLI
$ npx skills add forcedotcom/sf-skills --skill field-service-sobject-create-configure -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install forcedotcom/sf-skills field-service-sobject-create-configure --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/field-service-sobject-create-configure .claude/skills/field-service-sobject-create-configure && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
field-service-sobject-create-configure
GitHub stars
1.1k
Token cost
~3.2k tokens
SKILL.md length
1,311 words
Files
1
Skills in repo
252
Repo updated
First seen
Licence
Apache-2.0

At a glance

Headless 360 REST API deployment step for creating sObject records.

  • Works in 3 steps: Describe — dispatch_readonly GET… → Query existing records — learn the org's… → Create — dispatch POST to create…
  • A designer skill (or a user directly) needs to create sObject records after design confirmation
  • SKILL.md covers When to Use This Skill, Workflow, Flow and Data model DAG, plus 4 more sections
  • Calls sf

What it does

Field Service Sobject Create Configure is an agent skill from forcedotcom/sf-skills. Headless 360 REST API deployment step for creating sObject records. Handles describe-based field discovery, required-field derivation, entity-relationship ordering, and composite graph transactions. Use this skill when a designer skill (or a user directly) needs to create sObject records after design confirmation, including non-setup sObject creation.

Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Diagrams and REST APIs. The repository describes itself as: Salesforce's curated collection of agent skills for building applications. Optimized for Agentforce Vibes, compatible with all AI tools. The licence is Apache-2.0.

When your agent uses it

  • A designer skill (or a user directly) needs to create sObject records after design confirmation
  • Including non-setup sObject creation

Example prompts

  • “/field-service-sobject-create-configure”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Describe — dispatch_readonly GET /services/data/v67.0/sobjects//describe
  2. Query existing records — learn the org's shape...
  3. Create — dispatch POST to create records. Single...

What it can do on your machine

Read from SKILL.md and the folder at commit 4bbae5c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • sf

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Field Service Sobject Create Configure loads about 3.2k tokens when it runs. Until then it costs about 98 tokens; SKILL.md has 1,311 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~98
When it runs · the whole SKILL.md, loaded when a task matches
~3.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from forcedotcom/sf-skills at commit 4bbae5c, republished under its Apache-2.0 licence (© forcedotcom). 1,311 words, ~3,229 tokens.

Download SKILL.mdSave it as .claude/skills/field-service-sobject-create-configure/SKILL.md (or your agent's skills folder).
name
field-service-sobject-create-configure
description
Headless 360 REST API deployment step for creating sObject records. Handles describe-based field discovery, required-field derivation, entity-relationship ordering, and composite graph transactions. Use this skill when a designer skill (or a user directly) needs to create sObject records after design confirmation, including non-setup sObject creation.
user-invocable
false
metadata.version
1.0
metadata.domains
Field Service

Managing Sfs Sobject Create

When to Use This Skill

Create sObject records via Headless 360 REST API. Describes the flow (describe → query → create), Field Service data model DAG, field requirements, insertion order, and common pitfalls. Reference when creating Skill, WorkType, SkillRequirement, or other Field Service sObjects.

Workflow

Create an sObject record via headless-360

Be helpful — understand business context before creating records. Consider the business domain of the sObject being created and iterate through short, structured questions (ask/why/impact) until no ambiguities remain that would change what gets created. Skip questions when answers are already obvious from context or existing data.

Flow

Phase 1: Describe — dispatch_readonly GET /services/data/v67.0/sobjects/<SObject>/describe
Phase 2: Query existing records — learn the org's shape...

dispatch_readonly GET /services/data/v67.0/query, queryParams.q = "SELECT <required + picklist fields> FROM <SObject> ORDER BY CreatedDate DESC LIMIT 20". Use it to: match naming/value conventions, see which optional fields are actually populated, catch duplicates, and confirm write access before spending a create.

Phase 3: Create — dispatch POST to create records. Single...

Data model DAG

Example (Field Service junction pattern — same pattern applies to any sObject DAG based on the data shape):

text
Skill (0C5)    WorkType (08q)    ← roots (parallel)
    └──────────┬──────────┘
       SkillRequirement (0Hx)     ← junction (last)

Fields and insertion order

Scan describe fields[] for createable:true (skip the rest — describe is large). Such a field is required when also nillable:false and defaultedOnCreate:false (defaulted ones the platform fills — omit). Two kinds:

  • Scalar → put its value in the create body.
  • type:"reference" → foreign key. If nillable:false (hard edge), create parent in referenceTo[] first. Polymorphic refs list many — pick one. Topo-sort: roots first, pass each id to dependents. nillable:true refs → optional, PATCH later.

Pitfalls:

  • Base sObject CRUD is NOT in the discover corpus — skip discover, go straight to describe → dispatch.
  • CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY on write → that sObject blocks sObject-REST writes (e.g. ExternalDataSource, CustomPermission); use Tooling/Metadata API instead.
  • 400/403 → likely a CRUD/FLS/sharing gap for the gateway user, not a payload bug — don't blindly retry the body.

Example — WorkType

Describe WorkType, apply the rule to fields[]. The fields that come back createable:true, nillable:false, defaultedOnCreate:false are the required ones — build the body from those, don't assume field names. Then query a few existing WorkTypes to see conventions and dupes. Then create with the derived body, e.g.

json
{ "url": "/services/data/v67.0/sobjects/WorkType", "method": "POST",
  "body": { "Name": "Standard Repair", "EstimatedDuration": 2 } }

───── Runtime context (Headless 360 / agentic): When this skill runs in the Headless 360 / agentic context, prefer the platform dispatch tool (dispatch in the hosted Headless 360 MCP; dispatch in the local-dev MCP) over CLI tools (sf project deploy, sfdx, shell commands) when possible. The operations available to you are listed below in steps:; each has been verified against the live org. Call the dispatch tool against the canonical paths. CLI fallback is acceptable only when no API path exists for a given capability.

Critical Constraints

Preconditions:

  • Target sObject is createable and not on the sObject-REST block list. (check: GET /services/data/v67.0/sobjects/{N}/describe returns createable: trueat the top level. ACANNOT_INSERT_UPDATE_ACTIVATE_ENTITYon POST means the sObject blocks base REST writes (e.g.ExternalDataSource, CustomPermission) — switch to Tooling or Metadata API.)
  • Gateway user has object CRUD + relevant FLS for the required createable fields. (check: 400 / 403 with INSUFFICIENT_ACCESS_OR_READONLY on POST → CRUD/FLS gap, not a payload bug. Grant the user's profile / permset the Create on the entity and Edit-access on every field in the body.)
  • For composite/graph transactions, the caller has independently topo-sorted parents before children within each graph node's records. (check: ``referenceIds used with @{...}MUST refer to a record earlier in the same graph. Wrong ordering surfaces asINVALID_REFERENCE_ID on the child node, and the entire graph rolls back atomically.)

Operations Reference

Operations grouped by purpose. Use these as the building blocks for the workflows above.

Summary
OperationPurposeStatusCallDepends on
describe-sobjectread—GET /services/data/v67.0/sobjects/{SObjectName}/describe—
query-existing-recordsread—GET /services/data/v67.0/querydescribe-sobject
create-sobject-recordwrite—POST /services/data/v67.0/sobjects/{SObjectName}describe-sobject
composite-graph-createwrite—POST /services/data/v67.0/composite/graphdescribe-sobject
update-sobject-recordwrite—PATCH /services/data/v67.0/sobjects/{SObjectName}/{Id}create-sobject-record
delete-sobject-recordwrite—DELETE /services/data/v67.0/sobjects/{SObjectName}/{Id}—
Dependency graph
mermaid
graph TD
  describe_sobject["describe-sobject (read)"]
  query_existing_records["query-existing-records (read)"]
  create_sobject_record["create-sobject-record (write)"]
  composite_graph_create["composite-graph-create (write)"]
  update_sobject_record["update-sobject-record (write)"]
  delete_sobject_record["delete-sobject-record (write)"]
  describe_sobject --> query_existing_records
  describe_sobject --> create_sobject_record
  describe_sobject --> composite_graph_create
  create_sobject_record --> update_sobject_record
Read operations
describe-sobject

Fetch the field catalog for {SObjectName}. Scan fields[] for createable:true; hard-required fields are those also with nillable:false and defaultedOnCreate:false. type:"reference" fields are FKs — hard edges when nillable:false. Base sObject CRUD is intentionally OUT of the discover corpus (skill §Pitfalls); agents must skip discover and call describe directly.

Call: GET /services/data/v67.0/sobjects/{SObjectName}/describe

Inputs:

  • SObjectName (string) — API name of the sObject (e.g. WorkType, Skill, SkillRequirement). Path segment.

Output: SObjectDescribeSObjectResult. Load-bearing keys: createable, updateable, deletable, fields[] (each with name, type, createable, nillable, defaultedOnCreate, referenceTo[], picklistValues[]). Payload is large (>60KB for WorkType) — filter to createable:true fields before reasoning.

query-existing-records

Warm-read a small window of existing rows to match naming conventions, spot dupes, and confirm write access before spending a create. Skill §Flow.2 suggested SOQL: SELECT <required + picklist fields> FROM <SObject> ORDER BY CreatedDate DESC LIMIT 20.

Call: GET /services/data/v67.0/query

Inputs:

  • q (string) — SOQL query. Pass via queryParams.q (URL-encoded on the wire). LIMIT 20 or fewer is the recommended window for convention scanning.

Depends on: describe-sobject

Output: {totalSize, done, records: [<row>]}. records[] is the shape an agent scans for conventions. done:false + nextRecordsUrl surface when > 200 rows — irrelevant at LIMIT 20.

Show full SKILL.md (502 more words)Show less
Write operations
create-sobject-record

Create ONE record. Body carries only fields that were createable:true on describe. For DAGs (parents + children + junctions), prefer composite/graph so all rows land atomically in one transaction. 201 → {id, success, errors:[]}; non-2xx returns [{errorCode, message, fields:[]}].

Call: POST /services/data/v67.0/sobjects/{SObjectName}

Inputs:

  • SObjectName (string) — API name of the sObject (path segment).
  • body (object) — Field/value map. Only include fields with createable:true on describe; omit defaultedOnCreate:true fields (the platform fills them).

Depends on: describe-sobject

Output: 201 → {id: "<15/18-char id>", success: true, errors: []}. 4xx → array of {errorCode, message, fields}.

Rollback: delete-sobject-record

Notes: ERROR CONTRACT:

  • CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY → sObject blocks base REST writes; switch to Tooling / Metadata API. Common for ExternalDataSource, CustomPermission.
  • INSUFFICIENT_ACCESS_OR_READONLY → CRUD/FLS/sharing gap on the gateway user; don't retry the same body.
  • REQUIRED_FIELD_MISSING → re-check describe filter (some fields are createable+nillable:false only in specific record types).
  • INVALID_FIELD_FOR_INSERT_UPDATE → field is not createable:true; drop from body.
composite-graph-create

Atomically create a DAG of related records in one transaction. Skill §Data-model-DAG example: Skill + WorkType (roots) → SkillRequirement (junction). Use referenceId on each record and @{parentRef.id} in a child's FK field to bind at write time. Success returns 200 with per-node compositeResponse[] entries carrying per-child 201s. Any failure rolls back the ENTIRE graph.

Call: POST /services/data/v67.0/composite/graph

Inputs:

  • body (object) — {graphs: [{graphId, compositeRequest: [{referenceId, method:"POST", url:"/services/data/v67.0/sobjects/<N>", body:{...}}, ...]}]}. Multiple graphs may share one call; each isolates atomicity.

Depends on: describe-sobject

Output: 200 → {graphs: [{graphId, graphResponse: {compositeResponse: [{body:{id, success, errors}, httpHeaders, httpStatusCode, referenceId}]}, isSuccessful}]}. isSuccessful:false + per-child 4xx bodies on any failure.

Rollback: delete-sobject-record

Notes: ERROR CONTRACT:

  • INVALID_REFERENCE_ID → child references a referenceId that appears LATER in the array or doesn't exist. Topo-sort the compositeRequest[] parents-first.
  • LIMIT_EXCEEDED → composite/graph caps at 500 records per graph and 75 graphs per call.
  • MIXED_DML_OPERATION → the graph mixes setup-object sObjects (e.g. Skill, Group, User, Permission*) with non-setup sObjects (e.g. WorkType, Account, Contact) in one transaction — the platform forbids this even inside composite/graph. Split into two calls: create setup-side in call 1, capture the id, then create non-setup-side + junction referencing that id in call 2. The skill's Skill+WorkType+SkillRequirement example REQUIRES this split.
  • Any HTTP 4xx on ANY child → the graph's entire compositeResponse rolls back; sibling children report PROCESSING_HALTED and DELETE cleanup is unnecessary for a failed graph.
update-sobject-record

Field-level update on an existing record. Use for late-bound nillable:true reference attachment (skill §Fields-and- insertion-order) or corrections. PATCH is field-merge, not full-replacement: only fields in the body change; omitted fields are untouched. 204 on success (no response body).

Call: PATCH /services/data/v67.0/sobjects/{SObjectName}/{Id}

Inputs:

  • SObjectName (string)
  • Id (string) — 15- or 18-char record id (path segment).
  • body (object) — Field/value map. Only include fields with updateable:true on describe.

Depends on: create-sobject-record

Output: 204 No Content on success. 4xx → same [{errorCode, message, fields}] shape as POST.

delete-sobject-record

Delete a record. Rollback target for create-sobject-record (single) and composite-graph-create (children where the transaction succeeded but a downstream verify failed). 204 on success. Note: composite/graph atomically rolls back on failure — DELETE is only needed after a SUCCESSFUL graph that a later validation rejects.

Call: DELETE /services/data/v67.0/sobjects/{SObjectName}/{Id}

Inputs:

  • SObjectName (string)
  • Id (string)

Output: 204 No Content. 404 → id already gone (idempotent); treat as success.

© forcedotcom, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/field-service-sobject-create-configure of forcedotcom/sf-skills.

Open the folder on GitHubat commit 4bbae5c

Compare with similar skills

Field Service Sobject Create Configure next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Field Service Sobject Create Configure compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Field Service Sobject Create Configure this skillforcedotcom/sf-skills1.1k—~3.2kAutomated safety check: PassApache-2.0
Quickgo Databasegoogle-deepmind/science-skills3.2k1 repos~1.4kAutomated safety check: PassApache-2.0
Tldraw APIhoangnb24/skills230—~1.5kAutomated safety check: PassNone
Figma Local Dev Loopjeremylongshore/tons-of-skills-marketplace2.8k—~1.4kAutomated safety check: NotesMIT
Figma SDK Patternsjeremylongshore/tons-of-skills-marketplace2.8k—~2.2kAutomated safety check: PassMIT
REST Endpoint Designerjeremylongshore/tons-of-skills-marketplace2.8k—~565Automated safety check: PassMIT

Similar skills

  • Quickgo Database

    google-deepmind/science-skills

    Query the QuickGO and Evidence & Conclusion Ontology (ECO) REST API.

    3.2k GitHub starsUsed in 1 repo~1.4k tokens
    Backend & APIsAuto-check passed
  • Tldraw API

    hoangnb24/skills

    Create, inspect, edit, persist, and verify tldraw canvases through the tldraw Desktop local Canvas API without mouse-driven Computer Use.

    230 GitHub stars~1.5k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Figma Local Dev Loop

    jeremylongshore/tons-of-skills-marketplace

    Set up a local development workflow for Figma plugin and REST API projects.

    2.8k GitHub stars~1.4k tokensUpdated yesterday
    Backend & APIsAuto-check: notes
  • Figma SDK Patterns

    jeremylongshore/tons-of-skills-marketplace

    Production-ready patterns for the Figma REST API and Plugin API.

    2.8k GitHub stars~2.2k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • REST Endpoint Designer

    jeremylongshore/tons-of-skills-marketplace

    Build rest endpoint designer operations. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~565 tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Paperclip

    paperclipai/paperclip

    Interact with the Paperclip control plane API for task coordination and governance.

    99k GitHub stars~9.6k tokensUpdated today
    Backend & APIsAuto-check passed

More from forcedotcom/sf-skills

All 252 skills in this repo
  • Agentforce Architecture Analyze

    forcedotcom/sf-skills

    Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins.

    1.1k GitHub stars~4.5k tokensUpdated yesterday
    Auto-check passed
  • Agentforce D360 Analyze

    forcedotcom/sf-skills

    Data Cloud 360° view of a single Agentforce session. An agent skill from forcedotcom/sf-skills.

    1.1k GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Apply a Salesforce sandbox post-copy automation JSON config against a target org.

    1.1k GitHub stars~5.3k tokensUpdated yesterday
    Auto-check: notes
  • Apply a Salesforce sandbox post-copy automation JSON config against a target org.

    1.1k GitHub stars~5.4k tokensUpdated yesterday
    Auto-check: notes
  • Design Systems Slds Apply

    forcedotcom/sf-skills

    Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons.

    1.1k GitHub stars~3.7k tokensUpdated yesterday
    Auto-check passed
  • Experience Lwc Generate

    forcedotcom/sf-skills

    Lightning Web Components with PICKLES methodology and 165-point scoring.

    1.1k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Field Service Sobject Create Configure

What does Field Service Sobject Create Configure do?

Headless 360 REST API deployment step for creating sObject records. Field Service Sobject Create Configure is an agent skill from forcedotcom/sf-skills. Headless 360 REST API deployment step for creating sObject records.

When should I use Field Service Sobject Create Configure?

Field Service Sobject Create Configure fits situations like: A designer skill (or a user directly) needs to create sObject records after design confirmation; including non-setup sObject creation.

How do I install Field Service Sobject Create Configure in Claude Code?

Run `npx skills add forcedotcom/sf-skills --skill field-service-sobject-create-configure -a claude-code`. Or copy the skill folder (skills/field-service-sobject-create-configure in forcedotcom/sf-skills) into .claude/skills/field-service-sobject-create-configure in your project. Claude Code loads it when a task matches its description.

How do I install Field Service Sobject Create Configure in Codex?

Run `npx skills add forcedotcom/sf-skills --skill field-service-sobject-create-configure -a codex`. Or copy the skill folder (skills/field-service-sobject-create-configure in forcedotcom/sf-skills) into .agents/skills/field-service-sobject-create-configure in your project. Codex loads it when a task matches its description.

Can I use Field Service Sobject Create Configure in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/sf-skills --skill field-service-sobject-create-configure -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/field-service-sobject-create-configure, .gemini/skills/field-service-sobject-create-configure, .github/skills/field-service-sobject-create-configure and .opencode/skills/field-service-sobject-create-configure in your project.

What does Field Service Sobject Create Configure need to run?

Going by SKILL.md and its folder, Field Service Sobject Create Configure needs the command-line tools its instructions call (sf).

Does Field Service Sobject Create Configure access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Field Service Sobject Create Configure safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Field Service Sobject Create Configure use?

Field Service Sobject Create Configure is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Field Service Sobject Create Configure use?

About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Field Service Sobject Create Configure?

Skills that share tags, products or a category with Field Service Sobject Create Configure: Quickgo Database (google-deepmind/science-skills, 3.2k stars), Tldraw API (hoangnb24/skills, 230 stars), Figma Local Dev Loop (jeremylongshore/tons-of-skills-marketplace, 2.8k stars) and Figma SDK Patterns (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Field Service Sobject Create Configure?

forcedotcom (a GitHub organization) maintains it in forcedotcom/sf-skills, which has 1,067 GitHub stars. The repository holds 252 skills in this directory. The repository was last updated on October 9, 2026.

Source: forcedotcom/sf-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.