domains / families / business / service-email-to-case-configure
service-email-to-case-configure
authentic
Use to configure Salesforce Email-to-Case headlessly via the Metadata API. Reads CaseSettings, applies the emailToCase config with updateMetadata, and verifies by re-reading. Also the entry point for attaching an Agentforce agent to Email-to-Case: configures the E2C base, then delegates agent creation and channel wiring. TRIGGER on set up/configure Email-to-Case, enable E2C routing addresses, add a routing address, or E2C with an Agentforce agent. DO NOT TRIGGER for the interactive Easy Setup wizard, On-Demand E2C only, general Case/web-to-case setup, or an agent with no E2C involved.
When to use
- **In scope**: Enabling Email-to-Case org-wide and setting its toggles (full field lists in Required Inputs and step 4); creating `EmailToCase`, `Outlook`, and `GmailOAuth` routing addresses; applying the change to an sf-CLI-authenticated o…
- **Out of scope**:
- **`E2cEasy` routing addresses** — created only through the Service Easy Setup wizard, not the Metadata API; route the user there.
- Authenticating the org — the user authenticates out-of-band (e.g. `sf org login web`); the script reuses that session and never handles passwords or tokens.
- Case object schema, layouts, assignment rules, or Web-to-Case.
When not to use
- interactive Easy Setup wizard
- On-Demand E2C only
- general Case/web-to-case setup
- an agent with no E2C involved
- E2cEasy routing addresses
- authenticating the org
- Case object schema
- layouts, assignment rules, or Web-to-Case
Skill page
Source
| Repository | Path |
|---|
| forcedotcom/sf-skills | plugins/builder/service-engagement/skills/service-email-to-case-configure/SKILL.md |