ServiceCalls

ServiceCalls entity relationships

The REST API presents five service call related entities: ServiceCalls, ServiceCallTickets, ServiceCallTasks, ServiceCallTicketResources, and ServiceCallTaskResources. The following diagram illustrates the relationship between these entities.

NOTE   When using the service call entities, the external application must accommodate these relationships.

ServiceCalls entity

This entity describes an Autotask service call. Service calls are instances of time, with specified start and stop times, that are scheduled to perform work for a Company. Tasks and/or tickets can be assigned to a service call and the call can be associated with one or more resources.

You manage service calls through the Service Desk module (Service Calls or Dispatcher's Workshop). You can also edit service calls through the Projects module if a task is assigned to the call, and through Service Desk > Tickets if a ticket is assigned to the call.

IMPORTANT  The API respects the Autotask security level settings of the API user. New Service Call level security settings apply to Service Call related entities, with the exception of the View Ticket permission. Currently Service Call-related entities support only the View All or View None permissions; the View Mine permission is not supported and will be treated as None. For details about security level settings for access to Service Call data, refer to Create or edit a custom security level.

NOTE  You can refer to the Online Help to find root and child access URLs of the entity you wish to query. Refer to Finding resource and child access URLs of REST API entities for more information.

Entity details

Entity Name: ServiceCalls

Entity Path:

/atservicesrest/v1.0/ServiceCalls

Can Create:
Can Update:
Can Query:
Can Delete:
Can Have UDFs:  

IMPORTANT  Requests to this entity require special handling. Refer to the Entity URLs and relationships section of this article for details.

Conditions and requirements

  • This entity will be read-only if the module with which it is associated is not active. For more information, refer to Activations.
  • You can view API activity and threshold information by using the API Activity by Hour report in Autotask.
  • There is a workflow rule event for "Service Call Scheduled." If an action performed through the UI creates a ServiceCallScheduled workflow rule event, then that action must trigger the workflow rule event when performed through the API.
  • The API will respect the system setting "Automatically complete service calls when completing the last non-complete task or ticket associated with the service call." When this rule is enabled and the last open ticket or task associated with the service call transitions to Complete, the service call will also complete.
  • The API Service Call entity will respect the View, Add, and Edit permissions assigned to the logged-in user. It will not respect the "Mine" setting. The API will treat "Mine" as "None." For more information on granular ticket security, refer to Configure Custom Security Levels.
  • Service calls cannot be created with, or updated to use, an inactive status.
  • If the Service Call Status is Canceled, the following columns cannot be modified: startDateTime, endDateTime, duration, and complete.
  • If the Service Call Status is Canceled, isComplete is automatically set to True.

Field definitions

NOTE  To find field descriptions and general information, open the link to the topic that describes creating this entity in the Autotask UI.

Field Name Datatype Read-Only Is Required Reference Name Picklist
cancelationNoticeHours decimal      
canceledByResourceID integer        
canceledDateTime datetime        
companyID integer   Companies  
companylocationID integer     CompanyLocations  
createDateTime datetime      
creatorResourceID integer      
description string (2000)        
duration decimal      
endDateTime datetime      
id long    
impersonatorCreatorResourceID integer   Resources

 

isComplete short        
lastModifiedDateTime datetime      
startDateTime datetime      
status integer      

Additional resources