Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Perl API approval

Perl API approval

ServiceNow Perl API Module Description Constructor

Approval

An object representation of an Approval record in the ServiceNow instance. Provides subroutines for querying, updating, and creating approvals.

System Requirements

The ServiceNow Perl API requires Perl 5.8 with the following modules installed:

new(Configuration);

Example:

$approvals = ServiceNow::ITIL::Approval->new($CONFIG);

Takes a configuration object and manufactures an Approval object connected to the ServiceNow instance.

Table 1. Subroutines
Subroutines inherited from Task.pm Subroutines inherited from GlideRecord.pm reject approve
  • attach
  • close
  • create
  • queryJournal
  • reassign
  • reopen
  • addQuery
  • getValue
  • getDisplayValue
  • setValue
  • next
  • insert
  • query
  • update

reject(sys_id of approval record, optional comment string)

Example:

$approval->reject($sysID,$comment);

Reject the Approval record with specified sys id, and add comment to approval if given.

approve(sys_id of approval record, optional comment string)

Example:

$approval->approve($sysID,$comment);

Approve the Approval record with specified sys id, and add comment to approval if given.