GraphQL Example Widget

A quick example Service Portal widget that demonstrates a simple way to fetch data via ServiceNow's GraphQL API.

spUtil API Reference Cheat Sheet

Overview spUtil enables you to perform common functions in a Service Portal widget client script. You can access the methods by passing in spUtil as a parameter in your client-script function. Many of these methods have not been documented by ServiceNow, so we have combed through the source code once again to bring you another Service Portal cheatsheet! Save time and maximize your productivity with this quick reference document for you to use day-to-day. Enjoy!

GlideSPScriptable Cheat Sheet

Overview Did you know there are over 60 server-side methods available in GlideSPScriptable ($sp)? Many of these methods are hidden or not documented, so we've combed through all the widgets and source code to provide you with this cheat sheet that includes all of the $sp methods available in Service Portal. Now updated for the New York release. Save time and maximize your productivity with this quick reference document for you to use day-to-day. Enjoy!

Drag & Drop Attachments

Updated for Madrid & New York releases as well as adding many new features!!! Overview Displays an inline attachment section with support for drag-n-drop uploads on any catalog item or record producer within Service Portal Features No changes to out-of-box widgets Supports drag-n-drop Supports multiple attachments at once Attachments can be required via Portal Options Attachments can be disabled via Portal Options When enabled, replaces the OOB attachment feature Compatibility Limited to Service Portal, will not work in CMS Does not support order guides Only supports "widget-sc-cat-item-v2" widget Installation Install the update set Navigate to a catalog item or record producer and add Catalog Attachments to the Variable Sets related list. Configuration All configuration is done via the Portal Settings tab on the catalog item form. Demo

K18 CreatorCon Example Widgets

Overview: Includes the widgets that were used during the K18 CreatorCon breakout: "Unlocking Service Portal Widgets". Examples: Good Coding Practices Maintainable Widgets Async Widgets Streamlined Queries Installation: Uncompress the ZIP file Upload and commit the Update Set Navigate to Service Portal page: /sp?id=k18_good_practices

Gamification for Service Portal

Overview: Gamification is a great way to add incentives for users to explore and use the service portal repeatedly. In our Knowledge18 session, we demonstrated how to implement gamification in the Service Portal to introduce users to the portal and encourage them to complete certain tasks. Includes: Scoped Application Example for Guided Tour Example for Social Q&A For additional instructions and documentation, check out our blog post.

Image Link

Overview: The Image Link widget is the same as the out-of-box Icon Link widget, except it allows you to use custom images instead of icons in your Service Portal. Features: The widget supports all the same options as the Icon Link widget. Adds support for image uploads Support for three different templates

Greetings Title

Overview: To create a personalized welcome message, use the Greetings Title widget to generate a message that displays the users first name in the page title. Does not embed the Typeahead Search widget, so you will need to include that separately if this widget is used on the portal homepage. Features: Supports custom greeting (e.g. Hello ______) Option for disabling greeting Displays both title and short_description (optional)

snRecordPicker Example

Overview: One of the very powerful directives available in Service Portal is the snRecordPicker. This directive generates a field very similar to a reference field in the platform. This is very useful when creating custom widgets that will be interacting with tables and records in ServiceNow. For documentation on this widget, see this post: https://serviceportal.io/sn-record-picker/