Create Apex Email Service
sf_create_apex_email_serviceCreates an Apex Email Service using an existing Apex class to handle inbound emails, enabling parsing, case creation, or workflow triggers.
Instructions
Creates an Apex Email Service that processes inbound emails via an Apex class implementing Messaging.InboundEmailHandler. Useful for creating support cases from emails, parsing email content, or triggering workflows from inbound messages. The Apex class must exist before creating the service.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isActive | No | Whether this email service is active | |
| functionName | Yes | Email service function name | |
| apexClassName | Yes | Apex class that implements Messaging.InboundEmailHandler | |
| overLimitAction | No | What to do when over API limits | Discard |
| attachmentOption | No | Which attachment types to process | All |
| errorRoutingAddress | No | Error routing email address | |
| isErrorRoutingEnabled | No | Route errors to an address | |
| functionInactiveAction | No | What to do when function is inactive | Bounce |
| functionExceptionAction | No | What to do when an exception occurs | Bounce |
| isAuthenticationRequired | No | Require sender authentication | |
| authenticationFailureAction | No | What to do on authentication failure | Bounce |