Service...SResult(3)
π¦ WSResult module π¦
okay so bestie, this is the Service-now Perl API β the WSResult perl module π. Welcome to the docs, it's giving "internal plumbing but make it cute".
π Desciption π
it's an internal wrapper object used for parsing return values and detecting SOAP faults. lowkey the backbone of the whole vibe. no cap.
β¨ System Requirements β¨
the Service-now Perl API needs Perl 5.8, plus these modules installed, fr fr:
SOAP::Lite(prerequisites http://soaplite.com/prereqs.html) 0.71 or laterCrypt::SSLeayIO::Socket::SSL
like, all three. don't skip any or it's not gonna slay. π
π Constructor π
πΈ new
new(Type)
Example:
$WSResult = ServiceNow::WSResult->new($Type);
Constructor! Access to the ServiceNow Web Service Result object. Creates and stores a connection to specified table. iconic behavior honestly.
π¦ getValue
getValue(key)
Example:
$WSResult->getValue('name');
Get value from result hash using the supplied key. Returns a string value. simple, clean, ate. β¨
π getDisplayValue
getDisplayValue(key)
Example:
$WSResult->getValue($field);
Gets display value from result hash using the supplied key. Returns a string of the display value. the pretty version of the data, periodt.
π getResultBody
getResultBody();
Return the entire body of the result. the whole thing. every last crumb. π
π getMultiInsertValue
getMultiInsertValue()
Return the results of a multi transform that resulted in multiple insert responses. so many inserts. so many responses. main character energy for real.
π«Ά print
print()
Example:
$WSResult->print();
Prints entire contents of result. dump it all to the screen bestie, we're reading every word.
π printFault
printFault(hash)
Example:
$WSResult->printFault();
If fault, print fault fields. when things go wrong we look at it directly. no avoidance. π
β isFault
isFault()
Example:
$WSResult->isFault();
Returns boolean TRUE if result was not found, FALSE if result was found. vibe check on your result, basically.
ngl this whole page is an internal module, so it's giving "you know who you are, iykyk". but if you're here, you're here, and you're gonna understand it. π§
written under perl v5.42.0 πΈ dated 2025-07-25 β this doc page is Service...SResult(3), and the manual it lives in is the User Contributed Perl Documentation π mwah, go parse something π
π¦ where this page comes from
- fedora 43: perl-ServiceNow-API 1.01-38.fc43 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms