The Public Service Template repository is a collection of ServiceNow configurations. Their purpose is to shorten deployment time for public digital services. The main branch is dependent on two plugins described in the installation instructions. Download directly into a ServiceNow instance and get started!
-
Prepare your ServiceNow instance or Get a Personal Developer Instance
- In the ServiceNow Navigator, go to "System Definition" -> "Plugins"
- Install the Customer Service(com.sn_customerservice) plugin
- Install the Consumer Service Portal(com.glide.service-portal.consumer-portal) plugin
- In the ServiceNow Navigator, go to "System Definition" -> "Plugins"
-
Create GitHub Access - use an existing account or GitHub Create Account
-
Log into your GitHub Account
-
In the browser where you logged in to GitHub, paste this URL: https://github.com/jspirkosn/Public-Service-Template
-
In the upper right hand corner of the page you should see a button to fork the repo, click to create your own fork
-
Once the fork is complete copy the URL, it should be https://github.com/[your github user]/Public-Service-Template
-
Create a ServiceNow Credential - if you have a GitHub credential for ServiceNow, skip to step 8
- In the ServiceNow Navigator go to "Connections & Credentials" -> "Credentials"
- Click on "New" to create a new credential
- Chose "Basic Auth Credential"
- Give it a name and enter your GitHub User Name and Password
- In the ServiceNow Navigator go to "Connections & Credentials" -> "Credentials"
-
In the ServiceNow Navigator, go to "System Applications" -> "Studio"
-
A dialog appears - click on "Import from Source Control"
- URL: https://github.com/[your github user]/Public-Service-Template (the one you copied in step 6)
- Branch: master
- Credential: chose credential from step 7
-
Access the Public Service Portal - [your instance]/pub
- Click on the "Services" category
- Select "Report Streetlight Out"
-
Enjoy the configurations below!
Update the Public Service Template on Your Instance - Steps to update an the Public Service Template applicaiton
-
Status: Complete
-
Setup:
- In the ServiceNow Navigator, go to "System Applications" -> "Studio"
- Select the "Public Service Template" Application
- Open the top menu for "Source Control"
- Select "Apply Remote Changes"
- In the dialog box, select "Apply Remote Changes" again
- This brings the most recent code into your instance
-
Setup Video: Update the Public Services Template on Your Instance
-
Contributors:
Make the Portal Public - These are steps to make the portal accessible to unauthenticated users
-
Status: Complete
-
Setup:
- Go to [your instance]/pub and make sure you don't authenticate - You should only see the header to login and background image
- In the ServiceNow Navigator, go to "Public Services Template" -> "Widgets to Make Public."
- Make sure you are in the global scope
- Change the Public field to "true" for all 4 of the widgets
- In the ServiceNow Navigator, go to "Public Services Template" -> "Pages to Make Public."
- Change the Public field to "true" for 1 page
- Refresh the browser in step 1 - you should now see the search box and catalog navigations
-
Setup Video: Make the Portal Public - Setup
-
Contributors:
Anonymous User - Make it so a user can continue as Guest
-
Prerequisites: "Make the Portal Public."
-
Status: Complete
-
Setup:
- Follow the steps in the "Update the Public Service Template on Your Instance" section above
- Go to [your instance]/pub and make sure you don't authenticate - you should see the search box and catalog navigations
- Navigate to Services - Non Emergency Issues
- Click on the "Report Streetlight Out" catalog item
- On the login page, select "Continue as Guest."
- You should see a User name or password invalid message
- Go to [your instance] and login as an Admin user
- Make sure you are in the "Global" scope
- In the ServiceNow Navigator, go to "Public Services Template" -> "Scripts to Run."
- Click on "Create Public User for Anonymous Access" to open it
- Once opened, click on "Run Fix Script."
- Click on "Proceed."
- Go to [your instance]/pub and make sure you don't authenticate
- Navigate to Services - Non Emergency Issues
- Click on the "Report Streetlight Out" catalog item
- On the login page, select "Continue as Guest."
- You should see a form and it should say "Public Guest" in the upper right-hand corner
-
Setup Video: Anonymous User - Setup
-
Contributors:
Unleash the Common Service Data Model (CSDM)! - CSDM foundations and structure
-
Status: Complete
-
Setup:
- Go to [your instance] and login as an Admin user
- In the ServiceNow Navigator, go to "Public Services Template" -> "Scripts to Run"
- Open the script called "Unleash the Common Service Data Model!" by clicking on it
- Run the script by clicking on "Run Fix Script" in the upper right
- Watch the Setup video for a detailed explanation
-
Setup Video: Unleash the Common Service Data Model (CSDM)!
-
Contributors:
Taming the Common Service Data Model (CSDM)! - Stop designing and start getting value!
-
Status: Complete, this automates the build of the CSDM as record producers are added to the catalog
-
Setup:
- Go to [your instance] and login as an Admin user
- In the ServiceNow Navigator, go to System Definition -> Tables
- Search for and open the table called "Not Available for Subscribers"
- Open the "Application Access" tab
- Make sure the table is accessible from "All application scopes" and all boxes are checked
- This will allow our workflow to update this table from the "Public Service Template" scope
-
Explanation:
- In the ServiceNow Navigator, go to "Process Automation" -> "Flow Designer"
- Open the flow called "Public Services Data Modeler" by clicking on it
- In the Flow Designer click on the home icon
- Selec the Actions menu
- Open the action called "Public Service Catalog to Service Portfolio" by clicking on it
- Watch the Setup video for a detailed explanation
- To try it copy the "Report Streelight Out" Public form. Navigation: Public Services Template -> Public Forms
- Once copied go to Public Services Template -> Public Service Offerings
- Observe there is a new offering with the same name as your copied public form
-
Setup Video: Taming the Common Service Data Model (CSDM)!
-
Contributors:
Creating Public Forms Simplfied - How to remove hours of configuration time
-
Status: Complete, uses workflow to automate repetitive configutaiton tasks
-
Setup:
- Go to [your instance] and login as an Admin user
- In the ServiceNow Navigator, go to Public Services Template -> Accecc Producter Tables
- Warning: This opens catalog item configration to all scopes, be sure you understand the implications
- Make sure you are in the Global Scope
- Set "Can Create", "Can Update" and "Can Read" to true for all 4 tables
- Set "Can Delete" to true for sc_cat_item_subscribe_no_mtom and sc_cat_item_user_criteria_no_mtom
-
Try it:
- Make sure you are in the "Public Service Template" scope
- In the ServiceNow Navigator, go to Public Services Template -> Public Forms
- Click new
- Enter a name for your public form
- In the upper right of the form selec the three dots for more options and toggle template bar so its on
- You should see a template bar at the bottom of the form
- Click on the "Public Service Form" template
- Save the record
- At the bottom of the saved form click on the related list called Categories
- Click edit and select the catagory called "Non Emergency Issues"
- Go to [your instance URL]/pub
- Navigate to Services -> Non Emergency Issues and open your new Public Form
- Check out the map and the variables (the map may not work if the key has expired, this is covered in the next video)
- Watch the Setup video for a detailed explanation
-
Setup Video: Creating Public Forms Simplfied
-
Contributors:
Default Variable Sets - What you need to know about these
-
Status: Complete, public map and public common variables
-
Setup:
- Nothing to do here these are already setup
-
About these variable sets:
- Go to [your instance] and login as an Admin user
- In the ServiceNow Navigator, go to Service Catalog -> Variable Sets
- You should see 2 varaible sets that are part of the "Public Service Template" Application
- The public map uses a widget to render an ESRI map (license reguired for production)
- The public map variable set, sends data back to public common variables so these need to work as a set
- There is a workflow that creates locations if they aren't in the ServiceNow table (covered in the next demo)
- There are 2 UI policies that are part of the Public Common Variables Variable set
- Watch the explainer video for more details
-
Explainer Video: Variable Sets
-
Contributors:
Process case from Public Portal - The start of model drive automation
-
Status: Complete, flow designer flow
-
Setup:
- Nothing to do here these are already setup
-
About this flow:
- Go to [your instance] and login as an Admin user
- In the ServiceNow Navigator, go to Process Automation -> Flow Designer
- Open the flow called "Process case from Public Portal"
- Take Note: Trigger is new case
- Warning: Do not delete the "Report Street Light Out" example, this flow depends on it
- Note how the flow handles the consumer determiniation
- Note how we use the Service Structure from the common service data model to route the case
- Note how the location gets created in ServiceNow when it doesn't exist
- Watch the explainer video for more details
-
Explainer Video: Process case from Public Portal
-
Contributors:
Coming Soon - New things on-deck
- **Service Builder Workflow**-
Mobile API Endpoint for NewRocket Mobile
-
NewRocket Mobile App