> 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/_getjobreflast.md).

# \_getJobRefLast

Returns the Last Job Reference Number, result is affected by the "Job Ref Method" setting.

### Example

```
FM_api('Jobs_getJobRefLast');
```

### Results

If for example you create a Job with the reference "123456" and then a job with the reference "32", the result will depend on your "job ref method" setting:

"Based on last new job":

```
"32" 
```

"Based on highest existing job ref":

```
"123456"
```

"Disable automated job ref" will not return any integer.

```
""
```
