1ServiceNow::Attachment(U3s)er Contributed Perl DocumentatSieornviceNow::Attachment(3)
2
3
4

Attachment module

6       Service-now Perl API - Attachment perl module
7

Desciption

9       An object representation of an Attachment in the Service-now platform.
10       Provides subroutines for creating an attachment and attaching to an
11       existing record
12
13   System Requirements
14       The Service-now Perl API requires Perl 5.8 with the following modules
15       installed
16
17         * SOAP::Lite (prerequisites http://soaplite.com/prereqs.html) 0.71 or later
18         * Crypt::SSLeay
19         * IO::Socket::SSL
20         * File::Basename
21         * MIME::Types
22         * MIME::Type
23         * MIME::Base64
24

Constructor

26   new
27       new(Configuration);
28
29       Example:
30
31         $task = ServiceNow::Attachment->new($CONFIG);
32
33       Takes a configuration object and manufactures an Task object connected
34       to the Service-now instance
35

Subroutines

37   create
38       create(path, table_name, sys_id)
39
40       Example:
41
42          $attachment->create("/Users/davidloo/Desktop/test_files/number_test.xls", "incident", "9d385017c611228701d22104cc95c371");
43
44       Creates an attachment from a file on the local disk, to an existing
45       record defined by table_name and sys_id Returns the sys_id of the
46       ecc_queue record, undef if failed
47
48
49
50perl v5.32.0                      2020-07-28         ServiceNow::Attachment(3)
Impressum