> 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/xurrent/create-xurrent-request-formerly-4me.md).

# Create Xurrent Request (formerly 4Me)

Creates one Xurrent request (formerly 4Me) for all the assets the workflow collected. The asset list goes in as a CSV or XLSX attachment on the request note.

### Before you begin

* A Xurrent account, an OAuth token that may create requests and the Account ID.
* Accepted asset type: `device`. No required columns.
* The device columns you pick in **Edit Columns** are the columns of the attachment.
* Defaults you saved for this job in [Action Center Settings](broken://pages/aadcfcb7ababc8e1794bbdbb15a13e228c2ee3ed) 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                  | URL    | Yes      | None    | Your Xurrent URL. Example: `octoxlabs.xurrent.net`. Include the scheme if the form asks for a full URL.                         |
| OAuth Token          | Text   | Yes      | None    | OAuth token sent as a Bearer token. Secret, but shown as plain text (not masked).                                               |
| Account ID           | Text   | Yes      | None    | Sent as the `X-4me-Account` header.                                                                                             |
| Category             | Choice | Yes      | None    | Request category. Choices: `incident`, `rfc`, `rfi`, `reservation`, `order`, `fulfillment`, `complaint`, `compliment`, `other`. |
| Extra Parameters     | JSON   | No       | None    | Extra request properties in JSON, merged into the request.                                                                      |
| Attachment File Type | Choice | No       | `csv`   | Format of the attachment. Choices: `csv`, `xlsx`.                                                                               |

### How it works

* The job asks `GET <URL>/v1/attachments/storage` for an upload target, uploads the asset list there, and then sends one `POST <URL>/v1/requests`.
* The request has the chosen **Category**, the workflow title as `subject`, the workflow description as `note` and the uploaded file as a note attachment. **Extra Parameters** are merged in last.
* The attachment is named after the workflow (`octoxlabs-<workflow title>.csv` for CSV, `<workflow title>.xlsx` for XLSX). It starts with `Hostname Count`, then a header row with your columns and one row per asset (list values are joined with `|`). The XLSX sheet is named `Report`.
* If Xurrent does not answer 201 to the create request, the job logs the payload and response. The code only logs this error and does not raise it.
* The assets pass on to the next node unchanged.

### Example

Open an incident request with a CSV of the matched devices.

| Setting              | Value                         |
| -------------------- | ----------------------------- |
| URL                  | `https://example.xurrent.net` |
| OAuth Token          | `YOUR_API_TOKEN`              |
| Account ID           | `your-account-id`             |
| Category             | `incident`                    |
| Attachment File Type | `csv`                         |

### 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/e744ae45c9b49030556bff77290cdfeff703888e">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/aadcfcb7ababc8e1794bbdbb15a13e228c2ee3ed">Broken link</a></td></tr><tr><td><strong>Manage Engine Service Desk</strong></td><td>Create a ManageEngine Service Desk request.</td><td><a href="broken://pages/caccc95cb35d3f421beff299747d9efa7f8cfb96">Broken link</a></td></tr><tr><td><strong>Create Incident</strong></td><td>Create an Incident in OpenText SMAX.</td><td><a href="broken://pages/1db66318c438b4cf769278dafba7defc85663258">Broken link</a></td></tr></tbody></table>

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