# \_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"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fieldmotion.com/fieldmotion-api-docs/jobs/_getjobrefnext.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
