Education cloud multi campus configure

From forcedotcom/sf-skills · View interactive version

Education cloud multi campus configure is an AI agent skill from the GitHub repository forcedotcom/sf-skills. Use this skill when a Salesforce Administrator needs to create OR maintain an institutional hierarchy for Education Cloud by parsing organizational structure from a PDF, URL, text, or CSV. On a first run it creates System, Campus, College, and Department Account records linked via ParentId plus 1:1

How to use this skill

Skill file

Education Cloud Multi-Campus Institutional Hierarchy Configuration

Guides Salesforce Administrators through the full lifecycle of an institutional hierarchy: initial creation AND ongoing maintenance. Parses organizational structure from documents, URLs, CSV, or text, then either builds the hierarchy from scratch or reconciles it against what already exists in the org — creating only the delta. Supports any number of hierarchy levels (e.g., System → Campus → College → Department, or System → Region → Campus → Division → Department) based on the input. Creates/updates Account records with parent-child relationships and Business Profiles for each level, derives materialized paths on the fly for semantic navigation, and validates the result.

Mechanism

Try headless-360 first for every Account/BusinessProfile read or write — reads via dispatch_readonly, writes via dispatch (see references/mcp-invocation.md for call shape, response envelope, and per-step invocations). Probe with GET /services/data/vXX.0/limits before the first call: 2xx → route everything through it. Absent/4xx/5xx → probe other available transports (another Salesforce MCP server, or authenticated sf CLI) with the same read, use the first healthy one, and tell the user which transport is in use. None healthy → stop, ask the user to connect one; never fabricate a result.

Scope


Required Inputs

Gather or infer before proceeding:

Defaults unless specified:

If the user provides a complete hierarchy description or document, parse and confirm the structure before creating or changing records.


Workflow

All steps are sequential. Do not skip or reorder. If blocked, stop and ask for missing context.

  1. Verify foundation prerequisites — Follow references/foundation_prerequisites.md: org edition, Lightning Experience, Education Cloud license, running user's Full Access assignment, Education Cloud Foundation enabled (self-heal via confirm-then-enable if off). Do not proceed to Step 1 until all checks pass.
  1. Understand input format
  1. Parse desired hierarchy structure
  1. Confirm desired structure with user

3.5. Resolve Account RecordType from org

  1. Determine mode: new setup vs. update
  1. (Update mode) Load current hierarchy and compute the delta
  1. Preview before any write
  1. Apply changes (create / rename / move)
  1. Create Business Profiles (new/changed Accounts only)
  1. Verify hierarchy (cold verification)
  1. Return structure summary (completion report)

Rules / Constraints

| Constraint | Rationale |

|-----------|-----------|

| Update mode changes only the delta — reuse existing Accounts, never recreate | Recreating produces duplicates and orphaned Business Profiles; reconcile is the correct maintenance model |

| Deletion is never automatic — report extras, delete only on explicit per-node user confirmation | Removing an Account cascades to its Business Profile and children; destructive and irreversible |

| System Account has no ParentId | Top-level account cannot reference a parent |

| Child ParentId must reference its immediate parent Account | Maintains tree structure integrity — children link to direct parent, not ancestors |

| Process CREATE in depth-first order; apply MOVE/RENAME after creates | ParentId references fail if parent doesn't exist yet |

| Reject a MOVE that places a node under its own descendant | Cycle would corrupt the tree; Salesforce also throws CIRCULAR_DEPENDENCY |

| BusinessProfile must link to exactly one Account via AccountId (1:1) | Required by Education Cloud; never create a second profile for an existing Account |

| All Account names must be unique within their sibling group | Delta matching keys on name-within-parent; duplicates make reconcile ambiguous |

| Account RecordType resolved at runtime from Account describe, never hardcoded — capture recordTypeId from recordTypeInfos; POST uses RecordTypeId (not nested RecordType/DeveloperName) | Hardcoded Id/DeveloperName silently mismatches other orgs; describe is the source of truth for RecordType metadata |

| Retry Business Profile creation on API rate limit | Bulk creation commonly hits rate limits; retry succeeds |

| Materialized path is derived on the fly (walk ParentId chain to root), not read from a stored field | No path column exists on Account; compute it by joining ancestor Names with / when a path is requested |

| Support any number of levels (2+) | Do not hardcode level count — parse whatever structure appears in source |

| headless-360 is the default transport for every Account/BusinessProfile read/write; fall back to another available MCP or authenticated sf CLI only when it isn't set up, and announce the transport in use | Keeps org auth on the session's bound OAuth JWT when available; falling back silently would hide which credential/transport actually made the change |

| Never silently substitute a different data source when the requested URL is blocked | Customer must know what their hierarchy was actually built from — ask for a PDF/CSV/pasted alternative instead |

| InstitutionType on BusinessProfile is a managed restricted picklist — flag it, don't guess a value for institutions outside its taxonomy | Guessing a value (or forcing the closest fit) misrepresents the institution's real category |


Gotchas

See references/gotchas.md for known failure modes and their resolutions (rename/delete ambiguity, duplicate update runs, paging, rate limits, ambiguous parsing, missing Education Cloud provisioning, and more).


Output Expectations

Deliverables (new setup):

Deliverables (update/reconcile): the delta only — counts of created / renamed / moved / unchanged Accounts, any untouched extras, Business Profiles added for new Accounts, and the same verification summary.

See examples/output_examples.md for sample output structures (new setup and update/reconcile).


Reference File Index

| File | When to read |

|------|-------------|

| references/foundation_prerequisites.md | Step 0 — org edition, Lightning Experience, EDU license, permission set assignment, Education Cloud Foundation enablement; run before Step 1 on every standalone invocation |

| references/mcp-invocation.md | Steps 3.5, 5, 7-9 — exact dispatch/dispatch_readonly call shape and response envelope for every Account/BusinessProfile read/write |

| references/account_recordtype_prerequisite.md | Step 3.5 — no non-Master Account RecordType exists in org; ask/confirm/create it as a self-resolving prerequisite |

| references/hierarchy_parsing_rules.md | Step 2 — when parsed structure is ambiguous (e.g., college names appear without explicit campus parent) |

| references/delta_computation.md | Step 5 — exact matching algorithm for reconciling desired vs. current hierarchy (reuse/CREATE/EXTRA/RENAME/MOVE), including cycle rejection |

| references/error_handling.md | Steps 7-8 — when API errors occur during Account create/patch or Business Profile creation |

| references/gotchas.md | Any step — known failure modes and their resolutions |

| examples/hierarchy_visualization.md | Steps 3 & 10 — to format the hierarchy structure summary for the user |

| examples/output_examples.md | Steps 6 & 10 — pre-write preview templates, and sample completion-report output for new setup and update/reconcile |

| examples/sample_hierarchy_input.csv | Step 1 — reference shape for CSV input (Name,LevelType,Level,ParentName) |

| examples/sample_hierarchy_input_edgecases.csv | Step 1 — CSV edge cases: duplicate sibling names, abbreviations, orphaned parent reference |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.