Create ConnectWise Attachments
The Create ConnectWise Attachments action uploads files to an existing ConnectWise record, such as a ticket, company, or configuration. Files can come from the incoming email, a form upload, or an earlier action, such as a PDF from Generate PDF.
When to Use This Action
Use this action when:
- An email's attachments should be added to the ticket an earlier step created or found.
- A form collects photos or documents that belong on a ConnectWise record.
- An automation generates a report that should be stored on a company or agreement.
How It Works
Each file uploads separately
The action uploads each selected file on its own and applies Error Handling to each file. If one upload fails temporarily and the action retries, files that already uploaded are not uploaded again.
Check before you attach the same files twice
The action does not check whether the record already has a file with the same name or content. If an automation can run more than once for the same record, such as on every reply to a ticket, narrow the Files selection with filters so you attach only what you need.
Configuration
| Field | Description |
|---|---|
| ConnectWise Connection | The connection to use. Leave blank to use your default ConnectWise connection. |
| Record Type | The kind of record that receives the files: Ticket, Company, Contact, Configuration, Opportunity, Project, Agreement, Sales Order, Purchase Order, Expense, Activity, Invoice, or Time Entry. |
| Record ID | The record's numeric ID. Supports text expressions, such as {{custom.ticket.id}}. |
| Files | The files to upload. By default, the action selects the incoming email's attachments and inline images. Each source row can filter by filename, MIME type, and maximum size. See Use Uploaded Files in Actions for the available sources. |
| Private | Mark each uploaded document as private in ConnectWise. |
| Error Handling | What the automation does when ConnectWise rejects an upload or the request fails. |
ConnectWise applies its own file size limits, record permissions, and document rules.
Returned Variables
| Variable | Type | Description |
|---|---|---|
attached_count | number | The number of files attached. |
filenames | array | The names of the files attached. |
documents | array | ConnectWise's details for each uploaded document, such as its ID, title, filename, size, and visibility. |
Example usage: {{custom.attachments.attached_count}}