WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Jobs Activities → Create email activity (Jobs)

AI-generated

Summary

Create an email activity for a job

Inputs

  • jobId (required) — Job ID
  • templateId — Template ID to pre-populate fields from a template
  • subject — Email subject line
  • body — Message body content (HTML supported for email)
  • to — Recipients
  • cc — CC recipients
  • bcc — BCC recipients
  • labelIds — Array of label/tag IDs to attach (comma-separated)
  • attachmentIds — Attachment IDs from the upload endpoint (comma-separated)
  • sharing — Sharing options — control visibility to customer portal and field app
  • requestOptions — Options for request configuration including batching, SSL certificate verification, HTTP proxy settings, and request timeout in milliseconds.

Output shape

Created email activity record

Returns the created activity object; may include echoed input fields.

Examples

Example 1: Send a notification email when a job is created

jobId: '12345', to: ['user@example.com'], subject: 'Job Started', body: '

Job #12345 started.

'

Example 2: Notify multiple recipients and attach files

jobId: '67890', to: ['a@example.com','b@example.com'], cc: ['c@example.com'], attachmentIds: 'attach1,attach2', subject: 'Job Completed'

Links

Discussion