WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Jobs → Search jobs or stages with complex filters

AI-generated

Summary

Search jobs or stages using complex filters

Inputs

  • mode — Search mode
  • limit — Maximum number of results to return
  • cursor — Pagination cursor from a previous response
  • sortBy — Field to sort results by
  • sortDirection — Sort direction: asc or desc
  • status — Status filter
  • customer — Inline customer object — alternative to customerId
  • site — Inline site object — alternative to siteId
  • type —
  • priority —
  • owner —
  • fieldSupervisor —
  • zone —
  • tag —
  • priceBook —
  • billingCompany —
  • integrationId — integration ID
  • workCategory —
  • stageStatus —
  • search — Free-text search query
  • createdDate — Date range filter for creation date
  • dueDate — Due date (ISO 8601 datetime)
  • completedDate — Completion date (ISO 8601 datetime)
  • finalisedDate — Finalisation date (ISO 8601 datetime)
  • stageDueDate — stage due date (ISO 8601 datetime)
  • stageCompletedDate — stage completed date (ISO 8601 datetime)
  • fields — Field projection — array of field names to include in the response
  • include — Related entities to include in the response

Output shape

a list of matching jobs or stages

Results may be paginated; optional fields can be omitted; errors return an error envelope rather than data

Examples

Example 1: Search active jobs created today

mode='jobs', status='active', createdDate={operator:'on', value:'today'}

Example 2: Retrieve upcoming stage deadlines

mode='stages', limit=10, sortBy='stageDueDate', sortDirection='asc', stageDueDate={operator:'on_or_after', value:'today'}

Example 3: Include related items and filter by price book

include=['items','stages'], priceBook='standard', search='electric'

Links

Discussion