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/

K17 Theme Breakout

Thank you to everyone that was able to attend our CreatorCon breakout at Knowledge 2017. It was great finally meeting so many of you. Due to overwhelming demand, we are releasing the Presentation and Update Set for the theme we built during the breakout. To keep things simple, I’ve rebuilt the Update Set to not modify any of the out-of-box records and instead create new records. Also keep in mind this theme only styles the homepage and does not alter the content or layout. Once installed, you can view the portal by going to: https://instance.service-now.com/k17 Session ID: CCB4221 Presenter(s): Todd Bashor, Nathan Firth Company(s): NewRocket, Inc. Abstract: Wondering how to get your service portal to align with your branding guidelines? Fortunately, with the right approach, you can quickly and consistently achieve the look you want. In this session, you'll learn how to build a custom theme by correctly applying styles at the widget, page, and theme level and taking advantage of out of the box styles and css variables.