# Populating JobType

### JobType - Company Data Databox

Within the Entity Databoxes; check whether a Databox has already been created listing the details for the JobTypes. If this does not exist; create a Company Data Databox with the following details:

<figure><img src="/files/RX2A0oRNf0iGxun8xIIk" alt=""><figcaption></figcaption></figure>

* **Group**: This can be named as per your Databox grouping structure. We have named the Group MIS in this example
* **Name**: We have named this JobTypeID to identify the purpose of this Databox when used in the script
* **Values**: Enter the name and Values of the Job Type that you wish to add by clicking on the cells in the form.

{% hint style="info" %}
**TIP** To add another line to the Databox click the + button on the right. Multiple JobType codes can be added to the same Databox so this will only need creating once.
{% endhint %}

### JobType - Export Databox

Within the Entity Databoxes; check whether a Databox has been created for the JobType. If this does not exist; create a Databox with the following details:

<figure><img src="/files/B40uVFQHipZyZFbMwjgY" alt=""><figcaption></figcaption></figure>

* **Group**: This can be named as per your Databox grouping structure. We have named the Group MIS in this example
* **Type**: General
* **Name**: We have named this JobType to identify the purpose of this Databox when used in the script
* **Description**: This is so that a description can be given detailing the use of the Databox. This can be left blank if required.
* **XPath**: Fault/JobType/text()

{% hint style="info" %}
**NOTE** The XPath is case sensitive. Please also ensure that there are not two Databoxes with the same Xpath as this will cause Keyfax to error upon submission.
{% endhint %}

### Adding the JobType to a script

To add this to a script in order to pass the JobType back to MIS, please follow these instructions.

Within the script that you require the JobType to be passed, select Databox Read from the Item Type drop down list:

<figure><img src="/files/YUOaRK7Lwo826N0yWDMM" alt=""><figcaption></figcaption></figure>

Navigate to the Company Data Databox created above and expand to show any code lines that have been created - in this example ResponsiveRepair

<figure><img src="/files/hpSfM2I94AbzUQTcud69" alt=""><figcaption></figcaption></figure>

Drag this into the script. This will appear in the Script Step column

<figure><img src="/files/UQ7SiEv4W0pSC3dMYdaD" alt=""><figcaption></figcaption></figure>

Select Databox Write from the Item Type drop down list:

<figure><img src="/files/sBRHv0h3eu1dX9x1fPDn" alt=""><figcaption></figcaption></figure>

Navigate to the Export Databox created above

<figure><img src="/files/FIdd90C9iKJkgEkaKEbs" alt=""><figcaption></figcaption></figure>

Drag this into the script. This will appear in the Action column

<figure><img src="/files/Z8IuLYEIhxAMibgWDkKO" alt=""><figcaption></figcaption></figure>

Save the script.


---

# 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.keyfax.biz/product-suite/admin/host-operations/activeh-operations/populating-jobtype.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.
