1ServiceNow::GlideRecordU(s3e)r Contributed Perl DocumentaSteirovniceNow::GlideRecord(3)
2
3
4

GlideRecord module

6       Service-now Perl API - GlideRecord perl module
7

Desciption

9       An object representation of a GlideRecord object used to access your
10       Service-now instance.
11
12   System Requirements
13       The Service-now Perl API requires Perl 5.8 with the following modules
14       installed
15
16         * SOAP::Lite (prerequisites http://soaplite.com/prereqs.html) 0.71 or later
17         * Crypt::SSLeay
18         * IO::Socket::SSL
19

Constructor

21   new
22       new(Configuration object, Table name, optional caller object)
23
24           $config = ServiceNow::Configuration->new();
25               $glideRecord = ServiceNow::GlideRecord->new($config,'incident',$me);
26
27       Constructor.  Access to the ServiceNow Glide Record object. The caller
28       object is optional unless creating a Class that inherits GlideRecord
29       (See any class in ServiceNow/ITIL for example).
30

Subrotines

32   insert
33       insert(optional hash argument)
34
35       Example:
36
37           $glideRecord->insert();
38
39       Inserts glide record into Table. Returns sys id.
40
41   setValue
42       setValue(name, value)
43
44       Example:
45
46               $glideRecord->setValue('caller_id','56');
47
48       Sets element within Glide Record with name to specified value.  Will
49       not effect the GlideRecord within the Table until inserted or updated.
50
51   addQuery
52       addQuery(name, value)
53
54       Example:
55
56           $glideRecord->addQuery('number','INC1000014');
57           $glideRecord->query();
58
59       Refines query to include only the Glide Records with field name=value.
60
61   query
62       query(optional hash arguments)
63
64       Example:
65
66               $glideRecord->query();
67
68       Returns all Glide Records in the Table with specified query.  Step
69       through the Records with the next() call.
70
71   next
72       next()
73
74       Example:
75
76               if($glideRecord->next())
77               while($glideRecord->next())
78
79       Steps through the results of Glide Record query.  Returns TRUE if more
80       elements exist.
81
82   update
83       update(optional hash arguments)
84
85       Example:
86
87           $glideRecord->setValue('name','value');
88               $glideRecord->update();
89
90       Updates Glide Record in table with the Glide Record object.  Changes to
91       Glide Record object will not take effect until updated or inserted.
92       Returns sys_id of record on success, undef of failure.
93
94   getValue
95       getValue(name)
96
97       Example:
98
99           $glideRecord->getValue($name);
100
101       Get value of element name in GlideRecord.  Returns string value of
102       element.
103
104   getDisplayValue
105       getDisplayValue(name)
106
107       Example:
108
109           $glideRecord->getDisplayValue($name);
110
111       Gets display value of element name in GlideRecord. A display value
112       would be the string name, instead of the sys_id in the case of a
113       reference field, or the string value instead of the number value in the
114       case of choice fields.
115
116
117
118perl v5.28.0                      2010-03-05        ServiceNow::GlideRecord(3)
Impressum