Actions28
- Document Actions
- Traceability Actions
- Lookup Table Actions
- Printer Actions
- Label Actions
Traceability → Batch Generate Serials
AI-generatedSummary
Batch generate serial numbers for a traceability series.
Inputs
- seriesId (required) — The ID of the traceability series for which to generate serials.
- batchCount — Number of serial numbers to generate (default: 10, min: 1, max: 1000).
- contextData — Additional context data (JSON) used during serial generation, e.g., part_number, work_order (default: {}).
Output shape
json
Returns the HTTP response from the DataMagik /api/traceability/generate-batch endpoint, which typically contains an array of generated serial numbers and related metadata.
Examples
Example 1: Generate 5 serials for series 'ABC123' with work order context.
Set seriesId='ABC123', batchCount=5, contextData={'work_order':'WO-9876'}.