WorkflowsFunctionsUser Interactions
Send Email
Send an email to one or more recipients
Send Email
Send an email to specific people or to everyone with a certain role. You can use templates to personalize the email, attach files, and include your data in the message.
Technical Name: EmailNotificationFunc
Properties
- Execution Mode: SYNC
- Type: NATIVE
- Category: User Interactions
- Function ID:
5f9a1ea8-5d9a-4f2b-a8f6-8f6b5d9a1ea6
Input Schema
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
to | string | Comma-separated list of recipient emails |
roleId | string (uuid) | Role ID to send email to all users with this role |
mobjectId | string (uuid) | Object ID for resolving reference/picklist fields |
mdataId | string (uuid) | MData record ID for field resolution |
cc | string | Comma-separated list of CC email addresses |
bcc | string | Comma-separated list of BCC email addresses |
body | string | Email body content |
replyTo | string | Reply-to email address |
attachmentIds | array | Array of attachment file IDs |
templateId | string (uuid) | ID of the template to use for email content |
dataObject | object | Object for template resolution |
[Image placeholder: EmailNotification configuration panel]
Input Example
Simple Email
{
"to": "customer@example.com",
"body": "Your order has been processed successfully.",
"cc": "manager@example.com",
"replyTo": "support@example.com"
}Template-Based Email
{
"roleId": "customer-role-uuid",
"templateId": "order-confirmation-template-uuid",
"dataObject": {
"orderNumber": "ORD-12345",
"totalAmount": "$250.00",
"customerName": "John Doe"
}
}[Image placeholder: Email composition example]
Output Schema
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the email was sent successfully |
timestamp | string (date-time) | Timestamp when the email was sent |
messageId | string | Message identifier or status message |
Email Templates
Templates support variable substitution using {{variable}} syntax:
<p>Dear {{customerName}},</p>
<p>Your order {{orderNumber}} has been confirmed.</p>
<p>Total Amount: {{totalAmount}}</p>[Image placeholder: Email template editor]
Use Cases
Order Confirmation
Send confirmation emails after order placement:
Start → InsertOrder → EmailNotification(OrderConfirmation) → EndApproval Notifications
Notify approvers of pending tasks:
{
"roleId": "approver-role-uuid",
"templateId": "approval-request-template-uuid",
"dataObject": {
"requestType": "Purchase Order",
"amount": "$5,000",
"requester": "John Doe"
}
}[Image placeholder: Email notification workflows]
Best Practices
- Use Templates: Create reusable templates for consistency
- Personalization: Include recipient-specific information
- Test Emails: Always test templates before production use
- Error Handling: Check success status and handle failures
- Mobile Responsive: Design templates for mobile devices
Related Functions
- UserAction - Combine with user tasks
- HTMLToPDF - Generate PDF attachments
Limitations
- Maximum recipients per email: 100
- Maximum attachment size: 10MB total
- Maximum email size: 15MB
- Rate limit: 100 emails per minute
[Image placeholder: Email analytics dashboard]