> 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/sharepoint/create-item-in-list.md).

# Create Item In List

Creates a new item in a SharePoint list for every matched asset, filling the list columns from a JSON field mapping. It does not check for existing items, so running it twice creates duplicates. To change existing items, use [Update Item In List](broken://pages/38070d18a541ae3c5675cb61fea9e58f97018c54).

### Before you begin

* A Microsoft Entra (Azure AD) app registration: its tenant ID, client ID and client secret. The job signs in with the client credentials flow against Microsoft Graph.
* A SharePoint site and list reachable through that app.
* Connection values can be saved once as defaults. See [Action Center Settings](broken://pages/cc784ab7cf7754a10fa01950ebaf27cc37a8a8df), group **SharePoint**, one tab per job.
* Accepted asset types: device, user.
* Required columns: **Hostname** for devices, **Email** for users. Assets without a value for the required column are ignored.

### Settings

| Setting           | Type               | Required | Default    | Description                                                                                                                            |
| ----------------- | ------------------ | -------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| Tenant ID         | Text               | Yes      | None       | Microsoft Entra (Azure AD) tenant ID.                                                                                                  |
| Client ID         | Text               | Yes      | None       | Application (client) ID from Azure.                                                                                                    |
| Client Secret     | Text (sensitive)   | Yes      | None       | Client secret value from Azure. Masked after saving.                                                                                   |
| SharePoint Domain | Text               | Yes      | None       | Your SharePoint domain, for example `example-my.sharepoint.com`.                                                                       |
| Folder Type       | Text               | No       | `personal` | Folder type in SharePoint, for example `personal` or `marketing`.                                                                      |
| Site Address      | Text               | Yes      | None       | Site address path, for example `jdoe_example_com`.                                                                                     |
| List Name         | Text               | Yes      | None       | Name of the SharePoint list.                                                                                                           |
| Timeout           | Integer            | No       | 30         | Request timeout in seconds. This field has no label in the serializer, so the console name may differ.                                 |
| Field Mapping     | Text (JSON object) | No       | `{}`       | JSON mapping of SharePoint columns to asset fields. Example: `{"Title": "Hostname", "Status": "active"}`. Must be a valid JSON object. |

### How it works

The job requests a Microsoft Graph token, resolves the site from **SharePoint Domain**, **Folder Type** and **Site Address**, then resolves the list from **List Name**.

For each mapping entry the job reads the asset field. If a dotted field is empty it also tries it under `Specifics.`. List values are joined with `,` , and empty values are left out. Assets that end up with no fields are skipped and counted as failed.

Each remaining asset is posted as its own item, so one failing item does not stop the others. HTTP errors and exceptions are logged per asset and counted.

At the end the job logs the success, failure and total counts. It reports success when at least one item was created.

### Example

```
Tenant ID:          00000000-0000-0000-0000-000000000000
Client ID:          YOUR_CLIENT_ID
Client Secret:      YOUR_CLIENT_SECRET
SharePoint Domain:  example.sharepoint.com
Folder Type:        sites
Site Address:       it-assets
List Name:          Assets
Field Mapping:      {"Title": "Hostname", "IPAddress": "IpAddresses"}
```

### 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/a6adb736a528d63d9d04b466e73ca8bd9446ec02">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/cc784ab7cf7754a10fa01950ebaf27cc37a8a8df">Broken link</a></td></tr><tr><td><strong>Update Item In List</strong></td><td>Change items that already exist.</td><td><a href="broken://pages/38070d18a541ae3c5675cb61fea9e58f97018c54">Broken link</a></td></tr></tbody></table>

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