WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Flags → Create a flag on an entity

AI-generated

Summary

Creates a flag on a specified entity by sending a request to the WorkBuddy API.

Inputs

  • category (required) — Select a flag category. The value is sent as a JSON string.
  • entity (required) — Entity type for the webhook.
  • entityId (required) — entity ID.
  • message (required) — The flag message.
  • source (required) — The flag source.
  • links — Links associated with the flag (JSON object).
  • requestOptions — HTTP request options including batching, SSL settings, proxy, and timeout.

Output shape

The API response (typically the created flag object or success status).

The response data is available in the workflow execution result. The node supports batching for multiple items via request options.

Examples

Example 1: Create a flag for a specific job

Set category, entity to 'jobs', entityId to the target job ID, and provide a message and source.

Example 2: Create multiple flags with batching

Enable batching in requestOptions with a batch size (e.g., 50) and interval (e.g., 1000ms) to process a list of flags efficiently.

Links

Discussion