> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/action-center/manageengine-servicedesk/manage-engine-service-desk.md).

# Manage Engine Service Desk

Creates one ManageEngine ServiceDesk Plus request for all the assets the workflow collected. The asset list goes in as a CSV attachment.

### Before you begin

* A ManageEngine Service Desk instance and an API token (technician key) that may create requests.
* The requester and technician email addresses, and the names of the request type, status and category as they exist in Service Desk.
* Accepted asset type: `device`. No required columns.
* The device columns you pick in **Edit Columns** are the columns of the attached CSV.
* Defaults you saved for this job in [Action Center Settings](broken://pages/d4a722bebbea6a9b1a58851aa87a38346d4620e1) pre-fill the node form. Options you leave out are filled from them when you save the node.

### Settings

These are the fields of the job node form.

| Setting           | Type  | Required            | Default | Description                                                                                                                     |
| ----------------- | ----- | ------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------- |
| URL               | Text  | Yes                 | None    | Manage Engine Service Desk URL.                                                                                                 |
| API Token         | Text  | Yes                 | None    | Sent as the `authtoken` header. Secret. Masked after saving.                                                                    |
| Requester E-Mail  | Email | Yes                 | None    | Email of the requester.                                                                                                         |
| Technician E-Mail | Email | Yes                 | None    | Email of the technician.                                                                                                        |
| Group Name        | Text  | Yes (blank allowed) | None    | Group the request is assigned to. Leave blank for none.                                                                         |
| Request Type Name | Text  | Yes                 | None    | Name of the request type.                                                                                                       |
| Status Name       | Text  | Yes                 | None    | Name of the request status.                                                                                                     |
| Category Name     | Text  | Yes                 | None    | Name of the category.                                                                                                           |
| Sub Category Name | Text  | Yes (null allowed)  | None    | Name of the subcategory. Leave empty for none.                                                                                  |
| Item Name         | Text  | Yes (blank allowed) | None    | Name of the item. Leave blank for none.                                                                                         |
| Priority Name     | Text  | Yes (blank allowed) | None    | Name of the priority. Leave blank for none.                                                                                     |
| Subject           | Text  | Yes                 | None    | Subject of the request.                                                                                                         |
| Description       | Text  | No                  | None    | Description of the request.                                                                                                     |
| Extra Parameters  | JSON  | No                  | None    | Extra request properties in JSON, merged into the request. A key you give here replaces the value the job set for the same key. |

### How it works

* The job first uploads a file named `report.csv` to `<URL>/api/v3/requests/upload`. It holds a `Hostname Count` line, a header row with your columns and one row per asset (list values are joined with `|`).
* It then creates one request with `POST <URL>/api/v3/requests` with the requester, technician, request type, status, category, subject and the uploaded file as attachment. The description is sent wrapped in a `div`.
* Group, subcategory, item and priority are sent only when you fill them in. **Extra Parameters** are merged in last.
* If the upload does not return an attachment id, the job logs the error and creates no request. If the create request does not answer 200 or 201, the job logs the URL, payload and response. In both cases the code only logs the error and does not raise it.
* The assets pass on to the next node unchanged.

### Example

Open one request for all matched devices.

| Setting           | Value                             |
| ----------------- | --------------------------------- |
| URL               | `https://servicedesk.example.com` |
| API Token         | `YOUR_API_TOKEN`                  |
| Requester E-Mail  | `requester@example.com`           |
| Technician E-Mail | `tech@example.com`                |
| Request Type Name | `Incident`                        |
| Status Name       | `Open`                            |
| Category Name     | `Security`                        |
| Subject           | `Unmanaged devices`               |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/eac740781807b171a878e3e029a44567f9033b29">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save default values for this job.</td><td><a href="broken://pages/d4a722bebbea6a9b1a58851aa87a38346d4620e1">Broken link</a></td></tr><tr><td><strong>Create Xurrent Request (formerly 4Me)</strong></td><td>Create a request in Xurrent with the asset list attached.</td><td><a href="broken://pages/2cdaa3597bc537bfa22d98187f07df4886122904">Broken link</a></td></tr><tr><td><strong>Create Task</strong></td><td>Create ServiceNow catalog requests for devices.</td><td><a href="broken://pages/8ea0e1cb19f4d9e51ea983a3515a9514a543f06d">Broken link</a></td></tr></tbody></table>

{% hint style="info" %}
Available starting from version 2.4.0.
{% endhint %}
