# \_getSome

Gathers the data of several requested Jobs from their IDs.

### Parameter

#### ids

An array of IDs for the Jobs you want to be returned.

### Example

```
FM_api('Jobs_getSome',[
    'ids'=>['622081','622082']
    ]
);
```

### Results

#### On Success

```
[{"id":"622081","form_id":"610424","form_type":"0","form_num":"1","user_id":"0","user_type":"0","customer_id":"832706","location":null,"meeting_time":"2015-11-02 16:18:00","form_values":"null","is_complete":"0","last_edited":"2024-09-22 12:25:58","on_app":"0","meta":"{\"job_ref_customer\":\"\",\"recurrence_no\":1,\"original_meeting_time\":\"2015-11-02 16:18:00\",\"original_meeting_time_e\":1446481080}","appId":"0","created_by":"92447","cdate":"2024-09-22 12:25:58","notes":"","edited_uuid":null,"job_ref":"test create\/complete 358","job_ref_customer":"","user_status":"0","subform_values":null,"stock_used":"[]","mileage":"0","hours":"1","price":"0","priority":"3","vehicle_id":null,"mileage_cost":"0","hours_cost":"0","stock_cost":"0","sor_cost":null,"schedule_of_rates":"[]","due_date":"2024-09-22","stock_notes":null,"attendees":"","date_completed":"2015-11-02 17:18:00","current_user_id":"0","contract_id":"1","date_started":null,"price_net":"0.0000","customer_type":"0","department_id":"0","files":null,"meeting_time_flexible":"0","type_id":"0","deleted":"0","ddate":"0","cdate_e":"0","meeting_time_e":"1446481080","last_edited_e":"0","date_completed_e":"0","due_date_e":"0","date_started_e":"0","job_ref_len":"24","job_ref_customer_len":"0","customer_details":"{\"city\": \"nOnesuch city\", \"country\": \"IRL\", \"county\": \"tEst county\", \"landline\": \"012345678\", \"latitude\": \"0\", \"longitude\": \"0\", \"mobile\": \"\", \"name\": \"A Test Customer\", \"parent_id\": \"0\", \"postcode\": \"\", \"state\": \"Nostate\", \"street_address1\": \"street address 1\", \"street_address2\": \"street address 2\", \"town\": \"Test town\"}","secondary_to":"0","invoice_sent":"0","recurrence_id":"0","recurrence_previous_id":"0","misc_cost":"0","misc_used":"[]","schedule_of_rates2":"[]","parent1":null,"parent2":null,"parent3":null,"on_complete_log":null,"name":"Form<img onerror=\"console.error('form')\">"},{"id":"622082","form_id":"610424","form_type":"0","form_num":"1","user_id":"0","user_type":"0","customer_id":"832706","location":null,"meeting_time":"2015-11-02 16:18:00","form_values":"null","is_complete":"0","last_edited":"2024-09-22 12:25:58","on_app":"0","meta":"{\"job_ref_customer\":\"\",\"recurrence_no\":1,\"original_meeting_time\":\"2015-11-02 16:18:00\",\"original_meeting_time_e\":1446481080}","appId":"0","created_by":"92447","cdate":"2024-09-22 12:25:58","notes":"","edited_uuid":null,"job_ref":"test create\/complete 358","job_ref_customer":"","user_status":"0","subform_values":null,"stock_used":"[]","mileage":"0","hours":"1","price":"0","priority":"3","vehicle_id":null,"mileage_cost":"0","hours_cost":"0","stock_cost":"0","sor_cost":null,"schedule_of_rates":"[]","due_date":"2024-09-22","stock_notes":null,"attendees":"","date_completed":"2015-11-02 17:18:00","current_user_id":"0","contract_id":"1","date_started":null,"price_net":"0.0000","customer_type":"0","department_id":"0","files":null,"meeting_time_flexible":"0","type_id":"0","deleted":"0","ddate":"0","cdate_e":"0","meeting_time_e":"1446481080","last_edited_e":"0","date_completed_e":"0","due_date_e":"0","date_started_e":"0","job_ref_len":"24","job_ref_customer_len":"0","customer_details":"{\"city\": \"nOnesuch city\", \"country\": \"IRL\", \"county\": \"tEst county\", \"landline\": \"012345678\", \"latitude\": \"0\", \"longitude\": \"0\", \"mobile\": \"\", \"name\": \"A Test Customer\", \"parent_id\": \"0\", \"postcode\": \"\", \"state\": \"Nostate\", \"street_address1\": \"street address 1\", \"street_address2\": \"street address 2\", \"town\": \"Test town\"}","secondary_to":"0","invoice_sent":"0","recurrence_id":"0","recurrence_previous_id":"0","misc_cost":"0","misc_used":"[]","schedule_of_rates2":"[]","parent1":null,"parent2":null,"parent3":null,"on_complete_log":null,"name":"Form<img onerror=\"console.error('form')\">"}]
```

#### On Failure

If the "ids" parameter is not set:

```
{"error":"no ids parameter supplied"}
```

If the "ids" parameter value is not an array:

```
{"error":"parameter supplied is not an array"}
```


---

# 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/_getsome.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.
