Skip to main content

Create Autotask Time Entry

The Create Autotask Time Entry action creates a time entry on an existing Autotask ticket. It automatically locates the ticket from the email, matches the technician by email address, and logs time against the ticket.

Workflow Action

This is a workflow action. It searches for the matching Autotask resource and ticket automatically, then creates the time entry. If you already have the ticket ID and resource ID, use API: Create an Object with the TimeEntry entity for direct control. Learn more about the difference between workflow actions and single API call actions.

When to Use This Action​

Use this action when:

  • You want to log time against tickets based on incoming emails from technicians
  • You need to track time spent on email-based ticket correspondence
  • Technicians send emails that should automatically create time entries

Don't use this action for:

How It Works​

This action operates in three phases:

Phase 1: Find the Resource​

  1. Look up technician: Search Autotask for a resource (technician) matching the configured email address
  2. If no resource is found, the action uses the configured error handling

Phase 2: Find the Ticket​

  1. Search for a ticket number: Scan configured fields (subject, body, etc.) for an Autotask ticket number
  2. Follow merged tickets (optional): If the ticket was merged, follow the chain to the final ticket
  3. If no ticket is found, the action uses the configured error handling

Phase 3: Create the Time Entry​

  1. Create time entry: Log the specified duration against the ticket, attributed to the matched resource
  2. Calculate times: Set EndDateTime to the current time, and StartDateTime based on the duration
  3. Update status (optional): Change the ticket status if configured
  4. Attach files (optional): Add email attachments and/or .eml file to the ticket

Configuration​

Search For Autotask Resource​

FieldDescriptionDefault
Resource Email AddressEmail address to match the Autotask resource who will be assigned to the time entry. Supports text expressions.{{email.from.address}}
Action If No Resource MatchedWhat happens if no matching resource is found for the email address.Exception

Search for Autotask Ticket​

FieldDescriptionDefault
Fields to Search for Ticket NumberSelect which email fields to search for the Autotask ticket number.Email subject
Follow Trail of Merged TicketsIf the matched ticket has been merged, follow the merge trail to find the current ticket.Enabled
Action If No Ticket MatchedWhat happens if no matching ticket is found.Exception

Time Entry​

FieldDescriptionDefault
Time WorkedRequired duration of work in minutes. Supports text expressions, which must produce a non-empty value at runtime. If the value is empty, the action fails unless you enable Suppress Autotask API exceptions. The action sets EndDateTime to the current time and calculates StartDateTime based on this value.1 minute
Time Entry FieldsConfigure time entry properties including Summary Notes, Internal Notes, Allocation Code, and Role.Email body as summary
Set Ticket Status After UpdateOptionally update the ticket status after adding the time entry. Leave empty to keep the current status.None

Attachments​

FieldDescription
FilesAdd ordered sources from email properties, form input fields, previous custom results, or All Files. New actions select no files by default.
Prevent duplicate attachmentsEnsures each file is attached only once per ticket.
Attachment Settings for .eml fileConfigures the title and visibility used when Files includes the original email or rendered email image.

The action processes rows in order and keeps the first occurrence of each file. Apply optional Filename, MIME type, and Maximum bytes filters to each source row. All Files includes every available file and creates the original EML and original email image when available in an email workflow. Select email.attachments when you want only regular files attached to the incoming email.

Selected Files use content-based duplicate detection and attach to the matched ticket. Autotask attachment size limits and API permissions still apply.

Advanced​

FieldDescription
Suppress Autotask API exceptionsIf enabled, the workflow continues even if the Autotask API returns an error. Use sparingly.
Override Autotask ConnectionUse a specific Autotask connection instead of the default.

Additional Options​

FieldDescriptionDefault
Action After SuccessWhat happens after successfully creating the time entry.Stop All

Returned Variables​

When you configure Store the results in Variable, these variables become available for use in subsequent actions:

Retrieved Objects​

VariableTypeDescription
TicketobjectThe matched Autotask ticket, including id and TicketNumber properties
TimeEntryobjectThe created time entry entity

Example usage: {{custom.myVariable.TimeEntry.id}}

FAQs​

How does the action calculate start and end times?​

The action sets EndDateTime to the current time and calculates StartDateTime by subtracting the configured duration. For example, if you configure 15 minutes, the time entry shows as starting 15 minutes ago and ending now.

What role is assigned to the time entry?​

The time entry uses the resource's default Service Desk role unless you specify a different role in the Time Entry Fields configuration.

Can I use a dynamic value for the time worked?​

Yes. You can use text expressions like {{custom.parsedDuration}} if you have parsed the duration from the email content in a previous action.

What happens if the technician's email doesn't match any Autotask resource?​

The action uses the configured Action If No Resource Matched setting. By default, this is set to Exception, which stops the workflow with an error. You can change this to Continue to allow subsequent actions to run.