CUPS.GetJobIndex
----------------

Queries job index for ID.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CUPS](component_CUPS.md) | [7.4](newinversion74.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md). Use [CUPS.GetJobsAsJSON](CUPSGetJobsAsJSON.md) instead.

MBS( "CUPS.GetJobIndex"; JobID ) 

**MBS**( **"CUPS.GetJobIndex";** /\* Queries job index for ID. \*/  
**$JobID**) /\* The job ID.e.g. 123 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| JobID | The job ID. | 123 |

### Result

Returns job index, empty or error.

### Description

Queries job index for ID.  
You can use this function to quickly locate a job by ID in the list of jobs.  
Please call [CUPS.GetJobsCount](CUPSGetJobsCount.md) once before you call this function.  
Please consider using [CUPS.GetJobsAsJSON](CUPSGetJobsAsJSON.md) in future to query job list.  
### See also

- [CUPS.GetJobsAsJSON](CUPSGetJobsAsJSON.md)
- [CUPS.GetJobsCount](CUPSGetJobsCount.md)
- [CUPS.GetJobSize](CUPSGetJobSize.md)
- [CUPS.GetJobUser](CUPSGetJobUser.md)

### Release notes

- **Version 10.5**
    - Deprecated [CUPS.GetPrinterCount](https://www.mbsplugins.eu/CUPSGetPrinterCount.shtml), [CUPS.GetPrinterDefault](https://www.mbsplugins.eu/CUPSGetPrinterDefault.shtml), [CUPS.GetPrinterName](https://www.mbsplugins.eu/CUPSGetPrinterName.shtml), [CUPS.GetJobCompletionTime](https://www.mbsplugins.eu/CUPSGetJobCompletionTime.shtml), [CUPS.GetJobCreationTime](https://www.mbsplugins.eu/CUPSGetJobCreationTime.shtml), [CUPS.GetJobFormat](https://www.mbsplugins.eu/CUPSGetJobFormat.shtml), [CUPS.GetJobID](https://www.mbsplugins.eu/CUPSGetJobID.shtml), [CUPS.GetJobIndex](https://www.mbsplugins.eu/CUPSGetJobIndex.shtml), [CUPS.GetJobPrinter](https://www.mbsplugins.eu/CUPSGetJobPrinter.shtml), [CUPS.GetJobPriority](https://www.mbsplugins.eu/CUPSGetJobPriority.shtml), [CUPS.GetJobProcessingTime](https://www.mbsplugins.eu/CUPSGetJobProcessingTime.shtml), [CUPS.GetJobSize](https://www.mbsplugins.eu/CUPSGetJobSize.shtml), [CUPS.GetJobState](https://www.mbsplugins.eu/CUPSGetJobState.shtml), [CUPS.GetJobTitle](https://www.mbsplugins.eu/CUPSGetJobTitle.shtml), [CUPS.GetJobUser](https://www.mbsplugins.eu/CUPSGetJobUser.shtml) and [CUPS.GetJobsCount](https://www.mbsplugins.eu/CUPSGetJobsCount.shtml) function.
- **Version 7.4**
    - Added [CUPS.GetJobIndex](http://www.mbsplugins.eu/CUPSGetJobIndex.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 10.5pr2](https://www.mbsplugins.de/archive/2020-10-05/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.4pr4](https://www.mbsplugins.de/archive/2017-08-31/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 29th August 2017 , last changed 5th October 2020

  
[CUPS.GetJobID](CUPSGetJobID.md) - [CUPS.GetJobPrinter](CUPSGetJobPrinter.md)

[HTML Version](CUPSGetJobIndex.shtml)