> For the complete documentation index, see [llms.txt](https://hub.equipme.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hub.equipme.io/pro/automation/connectors/utilities.md).

# Utility modules: Lists and PDF

Utility modules Lists and PDF for providers: reconcile customer inventories, merge lists, create handover protocols and reports as PDF for customers.

**Path:** "Automation" → "Workflows" → flow designer → **"Lists"** and **"PDF"** modules

The utility modules **Lists** and **PDF** are part of equipme and complement the ["Equipme Pro"](https://hub.equipme.io/pro/automation/connectors/equipme-pro.md) module and the other connectors in [workflows](https://hub.equipme.io/pro/automation/workflows.md). They do not connect a system of their own but process data within the flow: comparing and merging lists and generating documents as PDF.

## What for?

* **Inventory reconciliation per customer:** compare a customer's service instances in Pro with the device list from their device management or your ERP – handle missing, new and differing devices separately.
* **Employee reconciliation per customer:** compare a customer's employee list in Pro with the list from their HR system.
* **Merge lists:** combine results from several customers or sources into one list, e.g. for an overall report.
* **Handover protocol and delivery note:** for every delivery, generate a PDF with customer, device, serial number and recipient and send it to the customer.
* **Customer reports:** send a customer's inventory or open orders as a monthly PDF report.

## Prerequisites

* The activated [Automation module](https://hub.equipme.io/pro/automation.md)
* **Lists:** no connection required.
* **PDF:** a connection of the [equipme connector](https://hub.equipme.io/pro/automation/connectors/equipme-pro.md) with the API key from Equipme Pro. The conversion runs via equipme.

## Setting up the connection

The components of the **Lists** module work without a connection.

For **HtmlToPdf** in the **PDF** module:

1. Drag the *HtmlToPdf* component onto the canvas.
2. Click **Connect account** and select the existing Pro connection or create a new one with **Label** and **API Key** (see [equipme connector – Pro modules](https://hub.equipme.io/pro/automation/connectors/equipme-pro.md#setting-up-the-connection)).
3. The connection appears under **"Accounts"**.

## Triggers

The utility modules have **no triggers**. They work with the data of previous components.

## "Lists" module

| Component | Purpose                                                      | Key options                     |
| --------- | ------------------------------------------------------------ | ------------------------------- |
| Compare   | Compare two lists and distribute the entries to four outputs | Origin, Update, Key, Attributes |
| Join      | Merge two lists into one list                                | Array 1, Array 2                |

### Compare

*Compare* compares an original list (**Origin**) with a new list (**Update**). Both inputs expect a **list** – for equipme components, the Output Type "All items at once".

| Option     | Meaning                                                                                                                        |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Origin     | The original list, e.g. a customer's service instances from Pro.                                                               |
| Update     | The new list, e.g. the devices from the customer's device management.                                                          |
| Key        | Required. One or more fields (comma-separated) that uniquely identify an entry, e.g. the serial number field or `email`.       |
| Attributes | Optional. Fields (comma-separated) whose change marks an entry as "changed". Empty: only new and removed entries are detected. |

Outputs:

| Output    | Content                                                                                                                                                              |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| added     | Entries that only exist in **Update** (new).                                                                                                                         |
| changed   | Entries in both lists where at least one of the **Attributes** differs. Fields from both lists are merged; for identical field names the value from **Update** wins. |
| removed   | Entries that only exist in **Origin** (gone).                                                                                                                        |
| unchanged | Entries in both lists without changes. For identical field names the value from **Origin** wins.                                                                     |

Good to know:

* The comparison ignores upper and lower case.
* The field names in **Key** and **Attributes** must be identical in **both** lists. If a field has a different name in the other system, rename it first (e.g. with a component that rebuilds the list).
* Every output delivers a list – even an empty one. To process entries individually, split the list into single entries afterwards.
* If a key occurs several times in one list, only the last entry counts.
* Compare **per customer**: filter both lists to the same customer, otherwise other customers' devices appear as "removed".

### Join

*Join* appends **Array 2** to **Array 1** and outputs one combined list. Duplicates are **not** removed.

## "PDF" module

| Component | Purpose                                                              | Key options                                                         |
| --------- | -------------------------------------------------------------------- | ------------------------------------------------------------------- |
| HtmlToPdf | Convert HTML content into a PDF and provide it as a file in the flow | Title, Header, Body, Footer, margins, Paper Size, Paper Orientation |

### HtmlToPdf

| Option                             | Meaning                                                                                                                         |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| Title                              | File name of the PDF (without extension). Empty: "document.pdf".                                                                |
| Header                             | Optional. HTML for the header of every page, e.g. your logo and company address.                                                |
| Body                               | Required. HTML of the content. Variables from previous components (customer, device, serial number …) can be inserted directly. |
| Footer                             | Optional. HTML for the footer of every page, e.g. date or signature line.                                                       |
| Margin Top / Left / Right / Bottom | Margins in pixels. Default: top 130 (40 without header), left and right 45, bottom 100.                                         |
| Paper Size                         | "A4" (default), "A3", "A5", "A6", "Letter", "Legal", "Tabloid", "D", "E". "None" equals A4.                                     |
| Paper Orientation                  | Page orientation, default "Portrait". For wide tables a larger paper size (e.g. "A3") works well.                               |

Result: **File ID**, **File Name** and **Content Type**. Pass the **File ID** to components that accept files – e.g. **Email › Send Email** ("Attachments" field), **Equipme Pro › Upload Service Instance Attachments** or *AddTicketAttachment* in the [Zoho Desk](https://hub.equipme.io/pro/automation/connectors/zoho-desk.md) connector.

{% hint style="info" %}
Use simple HTML with embedded CSS (`<style>` in the body). Images are best included via a publicly reachable URL or as embedded data.
{% endhint %}

## Examples

### Handover protocol per delivery

1. **Equipme Pro › New Fulfillment Order** – trigger, Transaction types "Delivery Request".
2. **PDF › HtmlToPdf** – Title "Handover protocol {customer} {serial number}", header with your logo, body with customer, location, recipient, device, serial number and date, footer with signature fields.
3. **Email › Send Email** – to the customer's contact person, Attachments = File ID from step 2.
4. **Equipme Pro › Upload Service Instance Attachments** – store the PDF as an attachment on the service instance.

### Reconcile a customer's device inventory

1. **Scheduler** – weekly.
2. **Equipme Pro › List Service Instances** – filtered to the customer, Output Type "All items at once".
3. Fetch the customer's device list, e.g. from their device management via a connector or **HTTP**. Name the serial number field as in Pro.
4. **Lists › Compare** – Origin = step 2, Update = step 3, Key = serial number.
5. Output **added** → ticket or email "Device without service instance"; output **removed** → check whether the device was returned.

### Monthly customer report

1. **Scheduler** – on the first of the month.
2. **Equipme Pro › List Customers** – Output Type "One item at a time".
3. **Equipme Pro › List Service Instances** – the customer's inventory.
4. **PDF › HtmlToPdf** – inventory as an HTML table, Paper Size "A4".
5. **Email › Send Email** – report to the customer's contact person.

## Notes and limits

* *Compare* and *Join* work in the flow's memory. Very large lists (many thousands of entries) slow down the flow – better compare per customer.
* A margin of 0 is not applied; the default value is used instead. For borderless pages enter 1.
* *HtmlToPdf* counts as a request to equipme and is subject to the API key's request limit (10 requests per second).

## Troubleshooting

| Problem                                                 | Cause / solution                                                                              |
| ------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| *Compare* reports all entries as "added" and "removed"  | The **Key** fields have different names in the two lists or are empty. Align the field names. |
| *Compare* reports other customers' devices as "removed" | Origin is not filtered to the same customer as Update.                                        |
| *Compare* or *Join* fails                               | An input is not a list. For equipme components, select Output Type "All items at once".       |
| *HtmlToPdf*: connection error                           | Check the API key of the Pro connection.                                                      |
| PDF is empty or badly formatted                         | The body must contain valid HTML. Embed CSS in a `<style>` block.                             |
| Header or footer overlaps the content                   | Increase Margin Top or Margin Bottom.                                                         |

Logs of every run are available under **"Insights"**.

## Frequently asked questions

**Can I design the PDF with my own letterhead?**

Yes. Header, body and footer are freely designable HTML. Put logo, address and colors in the header or footer and use the flow for all customers.

**Does the customer's device list need the same fields as Pro?**

Only the fields in **Key** and **Attributes** must have the same names in both lists. All other fields are passed through unchanged.

**Where does the generated PDF end up?**

As a file in the flow. It is only stored permanently when you pass it on – e.g. as an email attachment, as an attachment on the service instance or on a ticket.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hub.equipme.io/pro/automation/connectors/utilities.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
