Skip to main content

API: Create Autotask Attachments

The API: Create Autotask Attachments action attaches files from an incoming email to an Autotask entity. This is a low-level API action that creates attachment records in Autotask for each file.

Single API Call Action

This is a single API call action. You must supply the parent entity type and ID directly. Learn more about the difference between workflow actions and single API call actions.

When to Use This Action

Use this action when:

  • You need to attach email files to an existing Autotask entity
  • You want to attach files to entity types other than tickets (e.g., Accounts, Projects)
  • You need control over attachment visibility settings

Note: The Create Autotask Ticket and Update Existing Autotask Ticket workflow actions include built-in attachment options. Use this action only when those don't meet your needs.

Configuration

Connection

FieldDescription
Autotask ConnectionSelect the Autotask connection to use. If you have multiple connections, you can override the default.

Attachment Information

Configure where attachments will be stored. These fields are part of the Autotask AttachmentInfo entity.

FieldDescription
Parent TypeThe type of entity to attach files to. See supported parent types below. Default: 4 (Ticket).
Parent IDThe ID of the parent entity. Supports template variables like {{custom.ticket.id}}. Not used when Parent Type is Opportunity (use Opportunity ID instead).
Opportunity IDThe ID of the Opportunity to attach to. Only shown when Parent Type is 14 (Opportunity).
PublishControls visibility of attachments (e.g., All Autotask Users, Internal Only). Default: All Autotask Users.

Which Attachments?

FieldDescription
Attach email attachments to ticketWhen enabled, attaches all files from the incoming email. Default: enabled.
Prevent duplicate attachmentsWhen enabled, checks for existing attachments with the same name and skips duplicates. Only available when "Attach email attachments to ticket" is enabled.
Attach original email as .eml fileWhen enabled, attaches the complete original email as a downloadable .eml file.
Attachment Settings for .eml fileConfigure the title and publish settings for the .eml attachment. Only shown when "Attach original email as .eml file" is enabled.
Attach HTML email as imageWhen enabled, converts the HTML email content to an image attachment.

Advanced

FieldDescription
Suppress Autotask API exceptionsIf enabled, the workflow continues even if an attachment fails.

Supported Parent Types

ValueEntity Type
1Account
3Project
4Ticket or Task
6Resource
11Expense Report
12Knowledge Base Article
13Installed Product (Configuration Item)
14Opportunity
15Sales Order
18Time Entry
20Account Note
21Contract Note
22Project Note
23Ticket Note or Task Note
24Installed Product Note
25Document

How to Create Attachments

  1. Select Autotask Direct API: Create Autotask Attachments from the action dropdown
  2. Choose the Parent Type (e.g., 4 for Ticket)
  3. Enter the Parent ID from a previous action
  4. Enable the attachment options you need
  5. Configure the Publish setting for visibility

Returned Variables

This action does not return variables. Success or failure for each attachment is logged to the workflow history.

Example Use Cases

Attach Files to Ticket

After creating or finding a ticket:

SettingValue
Parent Type4 (Ticket)
Parent ID{{custom.ticket.id}}
Attach email attachments to ticketEnabled
PublishAll Autotask Users

Preserve Original Email

Save the complete email for reference:

SettingValue
Parent Type4 (Ticket)
Parent ID{{custom.ticket.id}}
Attach original email as .eml fileEnabled
PublishAll Autotask Users

Attach to Account

Add documentation to an account record:

SettingValue
Parent Type1 (Account)
Parent ID{{custom.account.id}}
Attach email attachments to ticketEnabled
PublishInternal Project Team

Attach to Project

Add files to a project:

SettingValue
Parent Type3 (Project)
Parent ID{{custom.project.id}}
Attach email attachments to ticketEnabled

FAQs

What file types can be attached?

Most common file types are supported. Autotask may block certain file types (e.g., executable files) based on your security settings.

Is there a file size limit?

Yes. Autotask has attachment size limits that vary by entity type and your Autotask configuration. Large files may fail to upload.

What does the .eml attachment contain?

The .eml file contains the complete original email including headers, body, and all attachments. Recipients can open it in any email client to see the message exactly as it was received.

Can I attach files to multiple entities?

Use this action multiple times with different Parent Type and Parent ID values, or use the Iterate action to attach to multiple entities.

What does "Prevent duplicate attachments" do?

Before attaching each file, the action checks if an attachment with the same filename already exists on the parent entity. If found, it skips that file to avoid duplicates.