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" module and the other connectors in workflows. 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
Lists: no connection required.
PDF: a connection of the equipme connector 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:
Drag the HtmlToPdf component onto the canvas.
Click Connect account and select the existing Pro connection or create a new one with Label and API Key (see equipme connector – Pro modules).
The connection appears under "Accounts".
Triggers
The utility modules have no triggers. They work with the data of previous components.
"Lists" module
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".
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:
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
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
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 connector.
Examples
Handover protocol per delivery
Equipme Pro › New Fulfillment Order – trigger, Transaction types "Delivery Request".
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.
Email › Send Email – to the customer's contact person, Attachments = File ID from step 2.
Equipme Pro › Upload Service Instance Attachments – store the PDF as an attachment on the service instance.
Reconcile a customer's device inventory
Scheduler – weekly.
Equipme Pro › List Service Instances – filtered to the customer, Output Type "All items at once".
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.
Lists › Compare – Origin = step 2, Update = step 3, Key = serial number.
Output added → ticket or email "Device without service instance"; output removed → check whether the device was returned.
Monthly customer report
Scheduler – on the first of the month.
Equipme Pro › List Customers – Output Type "One item at a time".
Equipme Pro › List Service Instances – the customer's inventory.
PDF › HtmlToPdf – inventory as an HTML table, Paper Size "A4".
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
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.
Was this helpful?