Professional Documents
Culture Documents
Profile
Preferences
Impersonate user
Elevate Role
Search global and service operation workspace
Explore All Section
Service portal home(End user)-You cannot make customization here made for end users
only,-also known as “Sp” Page.
Do not customize service now core components heavily instead we can create our own
custom component because it will affect when service now roll out new update.
Navigation- incident
Request
24th Jan’23
Assignment on variables.
30th Jan’23
Meta- search keyword
Multi row variable sets-single type of information can be captured multiple times
How to set parameters for field like read only, hidden etc.
-Explore ‘Applies to’ option – It sets the scope of policies where applicable
-Types- for eg- onLoad, onChange - will run on both load and change.
Jan 31st ‘23
Flow – how the things work when you select order now or add to cart.
Request items -RITM – Tasks are created under this like procurement and delievery etc
Client validation –
For script to apply on Ritem choose RITEM apply and similarly for catalog task.
Script:
g_form = important object in service now to access the form.
g_form.setValue(‘fieldname’,”value”);
// Note: always select values not labels in case of dropdown, selectbox, etc.
//for every reference use ‘sysid’- how to get-> right click on record and copy sys_id. Useful in case of
duplicate data.
Feb 1st ‘23
Scripting continued.
GlideRecord()- Used for fetching the records from table./ used for DBMS Operations.Not
recommended to use from client side so use Glide Ajax instead.
e.g code:
alert(newValue);
gr.get(newValue);
//gr.addQuery(‘’);
alert(gr.email);
Task- create catalog client script, onload client script and print some alert.
Explore
Feb 3rd’23
No session.
Feb 6th’23
Doubt solving session on previous assignment.
Feb 9th ‘23
o Explore documentation.
o Insert :
o Syntax : Insert(Function responseFunction)
o
o 2nd line indicates which field you want to set the value.
o 3rd line create response function variable.
o
o Mandatory fields will not affect for this type of insert because it is backend insertion.
o Update record= query+insert
o Query= the field you want to update.
o
o
o Primary fields and duplicate value validations work only from table side.
o Delete records
o Run query and delete.
Standard Practice:
Always use filter on table side to verify the data and then set the logic and write the query.
To prevent access data from client side.
It can be used from client script and UI Policy but not from Server Side.
To add the data use ‘addparam’ method.
Workflow properties.
Schedule-explore -important.
When we create new workflow ‘core’ tab will be enabled.
Drag and drop any activity you want.
Click publish otherwise it will not get saved.
Explore documentation.
Core activities.
Condition: If Statement: for field select variables first then select the variable item.{For e.g. VPN
category->variables->’When do you need this’ field}.
For checking the approvals we can impersonate to that particular user->My Approvals section.
Feb 20th ‘23
Advanced Workflow activities:
Switch Statements.
Create event
Notification.
Feb 23rd’ 23
Branch: Splitting
Run Script: To execute JavaScript scripts. You can directly use server side scripts.
Copy Activity.
All->Email-> Notifications
Syntax: ${column_name}.
g_scratchpad: is the best way whenever we want to fetch the data from the server and show it to
client, it does the job asynchronously instead of g_form.getReference() function.
Scheduled jobs:
Run->Duration.
gs.getEventQueue()-> explore.
Extend table-> child table we are creating will inherit all the properties of parent table.
Macros - you need to display some URL which user can click on and it will redirect to some
other site.(created using jelly script) g:evaluate - it will evaluate the value
Macro - new record - create a Marco variable- type specifications - widget, macro.
6 th March
UI action
Jelly tags
13th March
20th March
Service level agreement
SLA definitions> -> target-> Response and resolution.
Type->SLA, ULA, Underpinning contract
21st March
Create new update set in which we will be capturing it.
Order guides- we can combine multiple catalogues.
22nd March
Script include, Reporting requirement policy
Create update set and capture everything