McMain icon

McMain

Interact with McMain API

Work Order → Assign

AI-generated

Summary

Assign a work order to an employee with optional additional fields and batch settings.

Inputs

  • id (required) — Work order ID to assign
  • employeeId (required) — Employee ID to assign the work order to
  • additionalFields — Optional fields such as startDate and blockPlanning to set extra data
  • requestOptions — Advanced request settings including batching, SSL, proxy, and timeout

Output shape

a single Work Order record reflecting the assignment

Returns the updated work order object; errors are raised as n8n execution errors

Examples

Example 1: Assign a work order to an employee using default settings

Provide Work Order ID and Employee ID, leave Additional Fields empty, use default Request Options

Example 2: Assign with batch processing and custom timeout

Set Batching batchSize=100 and batchInterval=500, set Timeout=15000

Example 3: Assign with SSL bypass

Enable Allow Unauthorized Certs and optionally configure Proxy

Discussion