Service...SResult(3)

πŸ“¦
version 1.01 Β· 2 versions
, in fedora 43

πŸ¦‹ 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:

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