WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Jobs Activities → Create thread activity (Jobs)

AI-generated

Summary

Create a thread activity for a job

Inputs

  • jobId (required) — Job ID or job number (e.g. J12345)
  • body (required) — Message body content (HTML supported for email)
  • threadType (required) — Thread type identifier
  • sharing — Sharing options — control visibility to customer portal and field app
  • requestOptions — Options for request handling such as batching, proxy, SSL, timeout
  • 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 before aborting the request

Output shape

a created thread activity object

The response contains the new activity details; on error an error envelope is returned.

Examples

Example 1: Create a comment thread activity for job J12345 with shared visibility to customer and field

jobId=J12345, body=

Update

, threadType=comment, sharing={sharedWithCustomer:true,sharedWithField:true}, requestOptions={batchSize:1}

Links

Discussion