| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
CUPS.GetJobsAsJSON
Queries some jobs and returns JSON Array.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| CUPS | 10.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |
MBS( "CUPS.GetJobsAsJSON" { ; Name; OnlyMyJobs; whichJobs } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| Name | Name of the printer queue to query. If no name or empty string is specified, we get all queues. |
"Brother_DCP_8085DN" | Optional |
| OnlyMyJobs | Pass either "my" for your users jobs or "all" for all jobs. | "all" | Optional |
| whichJobs | Pass "active" to get only active jobs, "all" for all jobs or "complete" for completed jobs. | "complete" | Optional |
Result
Returns JSON array or error.
Description
Queries some jobs and returns JSON Array.States value can be Pending, Held, Processing, Stopped, Cancelled, Aborted or Completed.
See also newer Printer.GetJobsAsJSON function.
Examples
Find all jobs:
MBS("CUPS.GetJobsAsJSON"; ""; "all"; "all")
See also
- CUPS.GetJobCompletionTime
- CUPS.GetJobCreationTime
- CUPS.GetJobFormat
- CUPS.GetJobID
- CUPS.GetJobPriority
- CUPS.GetJobSize
- CUPS.GetJobState
- CUPS.GetJobTitle
- CUPS.GetJobUser
- Printer.GetJobsAsJSON
Release notes
- Version 10.5
- Added CUPS.GetPrintersAsJSON and CUPS.GetJobsAsJSON functions.
Blog Entries
FileMaker Magazin
This function checks for a license.
Created 5th October 2020, last changed 18th May 2026