WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Stages Activities → Preview an email activity (Stages)

AI-generated

Summary

Preview an email activity for a stage

Inputs

  • stageId (required) — Stage ID or stage number
  • jobId (required) —
  • 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, 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 — Request Options — HTTP request configuration options including batching, SSL, proxy, and timeout settings.
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible
  • proxy — HTTP proxy to use. If authentication is required it can be defined as follow: http://username:password@myproxy:3128
  • timeout — Time in ms to wait for the server to send response headers (and start the response body) before aborting the request

Output shape

a single email preview object

All provided parameters are echoed back in the response; optional fields may be omitted if not supplied.

Examples

Example 1: Preview an email for stage 1 with custom subject and recipients

stageId=1, jobId=100, subject='Reminder', body='

Don't forget

', to='["john@example.com"]'

Example 2: Preview using default settings and a template

stageId=2, jobId=200, templateId=300

Links

Discussion