← LeaderboardThe Skill Leaderboard

sales-partner-enablement-program-create

Create a new Salesforce Partner Enablement Program via the Connect API using the Headless 360 MCP server. Converses naturally with the user about what the program and its tasks are for, auto-fills fields from that description, and only asks for what it genuinely can't infer — then confirms before creating anything. Use when the user asks to "create an enablement program", "set up an enablement program", or "add a new enablement program". Only Partner Enablement (`PtnrEnablement`) programs are supported.

Published by forcedotcom ↗forcedotcom/sf-skills

Try your first task

A source-grounded starter task has not been verified for this skill yet.

SKILL.md

name: sales-partner-enablement-program-createdescription: "Create a new Salesforce Partner Enablement Program via the Connect API using the Headless 360 MCP server. Converses naturally with the user about what the program and its tasks are for, auto-fills fields from that description, and only asks for what it genuinely can't infer — then confirms before creating anything. Use when the user asks to \"create an enablement program\", \"set up an enablement program\", or \"add a new enablement program\". Only Partner Enablement (`PtnrEnablement`) programs are supported."metadata:   version: "1.0"

Create Partner Enablement Program

Creates a new Partner Enablement Program (programType: PtnrEnablement) via the Salesforce Connect API. Partner Enablement only — no other program type.

How to run this

Talk to the user like a colleague helping them set something up, not a form wizard. Concretely:

  • Ask about intent, not fields. Instead of asking for "Program Name", "Description", "Category", "Sub-category" one by one, ask what the program/task is for and about, then draft the fields yourself and show the result for a quick confirm. People can describe what they want in a sentence far more easily than they can fill in a schema.
  • Auto-populate aggressively. Derive name, description, category, content type, timing, and ordering from what the user tells you. Only ask a direct question when there's a genuine decision you can't infer (e.g. whether self-enrollment should be open or invite-only) or when your inference is ambiguous enough that guessing wrong would be annoying to undo.
  • Confirm with a summary, not a form. Show the user what you're about to create in plain, human sentences ("A program called X for partners to learn Y, with 3 steps..."). Let them correct anything in one reply rather than stepping back through a wizard.
  • Do the mechanics silently. Creating the program record, saving tasks, creating/publishing CMS content, resolving internal IDs, and publishing the program are all implementation details. Do them in the background and only speak up for: (a) questions only the user can answer, (b) the final confirmation before creating/publishing, (c) errors, and (d) the end result. Never narrate "Now I'll POST to the programs endpoint" / "creating the CMS content draft" / "publishing now" — just do it and report the outcome. The one exception: for a larger batch (more than ~5 Program Items being saved at once, or several new content pieces being created in the same save), post one brief heads-up line before starting (e.g. "Saving 8 Program Items and creating 3 pieces of content — one moment.") so the user isn't staring at silence during a longer sequence of calls — still don't narrate each individual call underneath it.
  • Never show raw API shapes to the user — no JSON bodies, endpoint paths, field names like taskSubCategory or developerName, or internal error codes. Translate everything into plain language. (All of that detail below and in the reference files is for you to execute correctly, not to narrate.)
  • Run the preflight and plumbing silently — don't narrate transport mechanics. The identity/permission/feature checks (Step 0 and Step 1), API-version resolution, and how you route calls are all internal. Do not tell the user things like "the session-identity route returned 404, falling back to SOQL", "resolving the API version", "checking your permission", or "moving on to Step 1" — these are noise to them. Just run the checks in the background and speak up only for: (a) a check that genuinely fails or blocks (e.g. the user lacks the Enablement Admin permission, or the feature is off — say that plainly, no codes), or (b) a decision only the user can make (e.g. confirming which identity the MCP is acting as when it's ambiguous). If a check passes, say nothing and continue. This applies to every internal endpoint attempt and fallback along the way, not just the final create/publish calls.
  • Whenever the user needs to pick from a set of named options (a template, a network/site, an existing piece of content, etc.), present them as selectable choices rather than a numbered list they have to retype from. Use whatever multiple-choice/selection UI your environment provides for this; only fall back to a plain text list if no such UI is available.
  • Never put a table inside a selectable-choice question's text. The selection UI is built for short option labels, not markdown tables — a table embedded in a question's prompt or in an option's label/description often renders as raw, unreadable text (pipes and dashes instead of a grid). Whenever you need to show a table (a field summary, a plan of Program Items, a consolidated list), send it as its own plain chat message first, and only then — as a separate, following turn — ask a short selectable-choice question (e.g. "Looks good, save these" / "I'd like to change something") that refers back to "the table above" rather than restating it.
  • Call them "Program Items," never "tasks," when talking to the user. The API and this doc use "task"/EnblProgramTaskDefinition internally (see the reference files) — that's implementation detail, not user-facing vocabulary. Every user-visible mention of the individual steps in a program should say "Program Item(s)."

Prerequisites (internal)

  • A Headless 360 MCP server must be connected. If none is, ask the user to run /mcp first.
  • Resolve the MCP prefix once, up front. The server name is chosen by whoever ran claude mcp add (or set up the environment), so the tools appear as mcp__<name>__dispatch / mcp__<name>__dispatch_readonly — the suffixes are stable, the prefix is not (it might be headless-360, headless-360-mcp-sdb-264, or anything else). Resolve your prefix once (e.g. ToolSearch → "dispatch dispatch_readonly"), then use that same prefix everywhere this skill writes mcp__headless-360__. Do not assume a specific server name.
  • Tools used: mcp__<prefix>__dispatch_readonly (all GET reads) and mcp__<prefix>__dispatch (all writes: POST/PATCH/PUT).
  • The running user must be able to author Enablement Programs. This requires the Design and Deliver Enablement Programs permission (PermissionsEnablementAdmin) — enabled by default as part of the Manage Enablement Essentials permission set (dev name EnablementAdmin, provisioned with the Enablement add-on license), or any permission set/group that grants the same permission. Confirm this up front in Step 0; without it every create/save/publish call later fails on access, and there's nothing this skill can do but ask an admin to grant it.

API version

Every REST/Connect path below and in the reference files is written with a v{version} placeholder (e.g. /services/data/v{version}/connect/enablement/programs). Do not hardcode a version. Resolve the org's supported API version once at the start — either from GET /services/data/ (returns the list of available versions; use the latest) or from your MCP environment's default — then reuse that single value on every call. This skill was validated against v67.0; that or newer is recommended. Where a literal version appears in an example, it is illustrative only — substitute the resolved value.


Reference files (internal)

The detailed flow and API mechanics are in references/. Read each file where a step below says to, before acting on that part of the flow — the step summaries here aren't enough on their own. Never narrate any of it.


Step 0 — Confirm the User Can Create Programs (silent unless blocked)

Before anything else — including the feature check in Step 1 — make sure the person you're helping can actually author Enablement Programs. If they can't, every create/save/publish call later fails on access, so catch it here rather than part-way through building a program.

Read references/permission-check.md before running this check. In short, silently:

  1. Resolve the running user's id, and confirm with the user that it's the identity the MCP authenticates and writes as before you trust it. If more than one Headless 360 MCP is connected, confirm the target org and user. Do not auto-select a user by login recency (ORDER BY LastLoginDate DESC). If you can't establish and confirm the acting identity, treat it as a failed check (below) rather than guessing.
  2. Check for the authoring permission with a PermissionSetAssignment query on PermissionSet.PermissionsEnablementAdmin = true, always scoped to that user's AssigneeId (inline the literal id).

Then:

  • One or more rows: the user has the permission — say nothing about this check and move on to Step 1.
  • Zero rows: stop. Tell the user plainly (no field names or codes) that they don't have the access needed and an admin has to grant it: the Manage Enablement Essentials permission set, or a permission set that includes it. Do not attempt to create anything.
  • The check itself fails (e.g. the session can't resolve the user or query PermissionSetAssignment): don't guess either way, and don't proceed. Tell the user the permission check couldn't complete and stop — do not attempt to create anything when you can't confirm the running user is authorized to author programs. Ask an admin to confirm access, then re-run.

This is the earliest gate: run it before the Step 1 feature check.


Step 1 — Confirm Partner Enablement Is On (silent unless blocked)

Before asking the user anything, check:

GET /services/data/v{version}/connect/setup/discovery/feature/sales-cloud-prm-partner-enablement/status

Returns {"status": "ENABLED" | "NOT_ENABLED" | "IN_PROGRESS", ...}.

  • ENABLED: say nothing about this check — move straight to Step 2.
  • NOT_ENABLED / IN_PROGRESS: stop and tell the user plainly, e.g.: "Partner Enablement isn't turned on for this org yet, so I can't create a program here — you'd need an admin to enable it first." Do not attempt to create the program anyway.
  • Call fails (e.g. 404 — the feature registry isn't reachable in every runtime): don't guess enabled or disabled, and don't proceed. Tell the user the check itself failed and stop — do not attempt to create the program when you can't confirm the feature is enabled. Ask an admin to confirm Partner Enablement is on, then re-run.

Step 2 — Learn About the Program

Read references/program-creation.md before starting this step.

Ask one open, warm question, e.g.:

"Tell me about the program — who's it for, and what should partners get out of it? Also, should partners be able to join on their own, or should enrollment be by invite?"

From the reply, draft (don't ask for these separately):

  • Name — a short, natural title (≤80 chars).
  • Description — a tightened version of what they said (≤350 chars).
  • Self-enrollment — take their answer if they gave one; otherwise default to open self-enrollment unless they described it as invite-only/curated, and say which way you defaulted so they can flip it in one word.
  • Template — fetch templates internally (GET /connect/enablement/programTemplate with programType=PtnrEnablement — see Templates in references/program-creation.md; the param must go through your transport's query-parameter mechanism, not be appended to the path, or the call 404s) and always let the user pick from the available templates plus a "Start from scratch" option, rather than having one silently assumed. Present them as selectable choices (see the note above), not a numbered list to retype. If their description makes one an obvious fit, say so alongside the choices ("'' looks like the closest match to what you described — pick whichever you'd like, or start from scratch"). Use the Selector Pattern below if the list is long.
  • Community/site — only relevant if the org has more than one; fetch networks internally (see references/program-creation.md). If there's exactly one, or the user named it, use it silently. If there are several with no clear match, let the user pick from the names as selectable choices.

Then show every drafted field plainly — as a short list or small table, not folded into one sentence — so the user can see exactly what will be created, e.g., as a plain chat message (not inside a selectable-choice question):

Here's the program I'll create:

FieldValue
NameJBP Tutorial
DescriptionHelps partners learn how to use the Joint Business Plan (JBP)...
Self-enrollmentOpen (partners can join on their own)
TemplateStart from scratch
CommunityPartnerHub360

Don't compress Name/Description/Self-enrollment/Template/Community into a single narrative sentence — each one is a field the user might want to correct, and they can only do that easily if they can see it listed on its own line.

Then, as a separate follow-up, ask a short selectable-choice question referring back to it — e.g. "Sound good, or want to change anything?" with options like "Looks good, create it" / "I'd like to change something." Don't restate the table inside the question or its options.

Once confirmed, create the program (silently — see references/program-creation.md for the exact call). Immediately after the create call succeeds, you must do two things before anything else:

  1. Parse the response body for the new program's id and build the record link from it — see "Create the program" in references/program-creation.md for the exact field and how to assemble the link. This parsing is required; the rest of this step depends on it.
  2. Post the record link to the user right away, as a bare URL on its own line. Do this before touching Program Items, content, or publishing — those steps can each fail independently, and the user should hold the link regardless.

Say something like:

Created it — here's the link: https://myorg.my.salesforce.com/lightning/r/EnablementProgram/0QoVW0000000AQn/view

Now let's add what partners will actually do.

Sharing this link is not optional and must not be deferred to Wrap Up — if you created the program, the user sees its link in this same turn.


Step 3 — Learn About the Program Items

Read references/program-items.md before asking about Program Items — it has this step's full flow and the inference rules. Read references/learning-content.md before resolving content for an item, and references/saving-and-publishing.md before saving. In short:

  1. Gather the Program Items. Start from the template's Program Items if one was picked; otherwise ask one open question about what partners should do. If the answer is sparse, propose a starting set as a table, and never save a suggested list without the user confirming it. Infer each item's fields from what they said. If nothing about timing was said at all, ask once for all items. For every Milestone, ask once whether it should track a measure or just be a checkpoint.
  2. Confirm the list the user described, as a table, before offering changes. Then, at most once each and only where the reference says to, offer to group the items into sections and to add a milestone.
  3. Confirm the final plan as a table (one table per section when grouped) in its own message, then ask a separate selectable-choice question. Loop on edits until they confirm.
  4. Resolve content for every Exercise item, one item at a time. This is required; Milestones never need content. Unless they already gave a link, offer Link existing content / Create new content / Skip for now. Show every content field with the item's timing, and get a confirm before moving to the next item. If they say the content itself isn't ready, leave the item unlinked and flag it with an owner and a target date.
  5. Confirm one consolidated table of the whole program, then save everything in one go, silently.

Once Program Items are saved, they can't be removed through this flow, so get each one right before saving. Their fields can still be edited. To edit a saved item or add items to a program saved earlier, first read the editing and adding rules in references/program-items.md and "Fetching an existing program's items" in references/saving-and-publishing.md. Fetch the program's current items, then confirm just the change for an edit, or run the full flow above for the new items.


Step 4 — Wrap Up

Read references/saving-and-publishing.md before publishing, and references/learning-content.md before fixing an item's content.

Ask, plainly: "Want me to publish this now, or leave it as a draft you can review first?" Note in passing that publishing needs every Program Item to have its content linked — if something's still missing, mention which one and offer to sort it now.

If any item was flagged earlier as placeholder/not-ready content (with an owner and target date noted), surface that explicitly here regardless of what they answer: remind them which item it is, who owns it, and the target date, and make clear it'll stay unlinked (and the program can't publish) until that's resolved — don't let it silently ride along as just another "unlinked" row.

If they want to publish, first do a quick reachability check on every linked item's content: try fetching each videoUrl/externalLink. If one doesn't resolve (dead link, redirect to an error, etc.), tell the user which item and link before publishing and ask whether to fix it now or publish anyway — don't block silently, but don't skip mentioning it either.

Do the publish itself silently and confirm the result. If a Program Item is missing content, don't fail silently — say which one and offer to fix it now or leave it as Draft.

Finish with a short, plain summary and the link — nothing else:

"All set — '' is live/saved as a draft with steps. "

Output the URL as a bare link on its own line (no markdown [text](url) syntax — some terminals won't render it as clickable).


Error Handling

Translate every error into plain language for the user — never show raw codes or JSON. Never silently retry a failed call — always tell the user something went wrong and what you're doing about it. For what specific errors mean and how to recover, see Error Handling in references/saving-and-publishing.md.

Selector Pattern

Any time the user needs to choose one thing from several named options — a template, a network, an existing piece of content — present them as selectable choices using whatever selection UI is available in your environment, rather than a numbered list the user has to type a number or name back for. This applies generally (e.g. the template pick in Step 2), not just to long lists.

For long lists specifically (e.g. many existing content records to choose from): show a first batch of choices with a "Show more" option if there are more; keep track of where you left off across turns; for multi-select, add a "Done selecting" option once at least one item is picked. Never silently truncate a list to fit a display limit.