> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/jobs/_getjobrefnext.md).

# \_getJobRefNext

Get the Next Job Reference Number, depending on the "Job Ref Method" setting.

### Example

```
FM_api('Jobs_getJobRefNext');
```

### Results

If for example you create a Job with the reference "2026" and then a job with the reference "45", the result will depend on your "job ref method" setting, with 1 added to it:

"Based on last new job":

```
"46"
```

"Based on highest existing job ref":

```
"2027"
```

"Disable automated job ref" will always return 1.

```
"1"
```
