WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Jobs Activities → Preview an email activity (Jobs)

AI-generated

Summary

Preview an email activity (jobs-activities): generates a preview of an email for a specified job, using optional template, recipients, labels, attachments, and sharing options. Supports HTML body, multiple 'to', 'cc', 'bcc' recipients, and a 'merge' option to merge fields.

Inputs

  • jobId (required) — Job ID or job number (e.g. J12345)
  • templateId — Template ID to pre-populate fields from a template
  • subject — Email subject line
  • body — Message body content (HTML supported for email)
  • to — Recipients (multiple values allowed)
  • merge — Option to merge fields into the email content
  • cc — CC recipients (multiple values allowed)
  • bcc — BCC recipients (multiple values allowed)
  • labelIds — Array of label/tag IDs to attach (comma-separated, e.g. "id1,id2")
  • attachmentIds — Attachment IDs from the upload endpoint (comma-separated, e.g. "id1,id2")
  • sharing — Sharing options — control visibility to customer portal and field app
  • requestOptions — Various request options such as batching, proxy, timeout, and SSL settings

Output shape

a single email activity object

Returns the previewed email activity as a JSON object. Optional fields may be omitted.

Examples

Example 1: Preview an email activity for a specific job using a template

jobId=J12345&templateId=T987&subject=Hello&body=

Test

&to=alice@example.com,cc=bob@example.com

Links

Discussion