Perl API classes

The Perl API includes multiple classes.

API

Class Description
ServiceNow.pm A class that contains data querying, creation, and modification subroutines for all the ITIL objects. It is a convenient entry point to the API without using the object oriented ITIL objects directly

ITIL objects

Class Description
Incident.pm The incident class, extends Task, which extends GlideRecord. Maps to the incident table.
Problem.pm The problem class, extends Task, which extends GlideRecord. Maps to the problem table.
Change.pm The change request class, extends Task, which extends GlideRecord. Maps to the change_request table.
Request.pm The service request class, extends Task, which extends GlideRecord. Maps to the sc_request table.
RequestedItem.pm The service request item class, extends Task, which extends GlideRecord. Maps to the sc_req_item table.
SC_Task.pm The service request task class, extends Task, which extends GlideRecord. Maps to the sc_task table.
Task.pm The task class extends GlideRecord. Maps to the task table.
Ticket.pm The ticket class, extends Task, which extends GlideRecord. Maps to the ticket table.

Other

Class Description
Configuration.pm The API configuration class, this class must be passed to the constructor of the other API classes. It defines the SOAP endpoint as well as the credentials to use for API access.
GlideRecord.pm The class behind all table access classes.
Connection.pm The Connection class implements the web service access layer in an interface that can be overriden. By default, it uses the SOAP::Lite package for web services support.
Approval.pm The approval class extends GlideRecord. Maps to the sysapproval_approver table.
Dictionary.pm The dictionary class extends GlideRecord. Maps to the sys_dictionary table.
Attachment.pm The attachment class extends GlideRecord. Used to add attachments to the other objects.