# \_jobCreate

Creates a job for a Goods received note

### Parameters

#### grn\_id

The ID of the Goods received note to be given a job

#### job\_id

The ID of the created job

### Example

```
=FM_api('GoodsReceivedNote_jobCreate',[
  'grn_id'=>'7',
  'job_id'=>'32041'
  ]
);
```

### Results

#### On Success

```
{"ok":1,"id":32041}
```

#### On Failure

If there's no 'grn\_id' parameter provided

```
{"error":"no goods received note id specified"}
```

If the 'grn\_id' parameter given does not match the ID of any Goods received notes.

```
{"error":"goods received note does not exist"}
```

If the selected Goods received note has no items recorded

```
{"error":"no line items recorded for this goods received note"}
```


---

# 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/goodsreceivednote/_jobcreate.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.
