ServiceNow News
27 items
Hello All,
We have a oob ui action Refresh impacted services.
I want to automate the process like if any addition or deletion to affted ci's related list on incident happens then i want to r...
Refresh impacted services automation not working
New article articles in ServiceNow Community
·
about 21 hours
www.servicenow.com
cache
In ServiceNow's Flow Designer, there are often scenarios where you need to include a link to a specific record within an email. However, when using the Send Email flow action, this isn't directly p...
ServiceNow Flow Designer: Adding Record Link in "Send Email" flow action
New article articles in ServiceNow Community
·
11 months
www.servicenow.com
cache
Often, we encounter checkbox variables on our catalog items that may not be filled in. Despite being unchecked, these variables are still displayed on the ticket page. Customers might request to hi...
How to Hide Unchecked Checkbox Variables on the Ticket Page
New article articles in ServiceNow Community
·
11 months
www.servicenow.com
cache
Often, we need to configure a document template for a table and generate a PDF file to attach to the target record using server-side scripting.
Here's how you can generate and attach the document ...
Generating and Attaching Document Templates in ServiceNow to Record - Server Side
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Often, we need to add a Watch list to the standard ticket configuration. However, out-of-the-box (OOB) this isn't allowed due to the business rule "Allow only whitelist fields for Header" Since thi...
Adding Watch List to Standard Ticket Configuration in ServiceNow
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Often, there's a need to copy attachments from a record producer's attachment variable to the target record. Unfortunately, there's no direct out-of-the-box solution for this in ServiceNow.
Howeve...
Copying Attachments from a Record Producer's Attachment Variable to a Target Record in ServiceNow
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Consider a requirement to validate if the user selects a time in the date/time variable between 11 AM and 4 PM.
You can use the onChange catalog client script with the following logic. It handles...
Validate date/time range based on logged in user's timezone
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
There is often a requirement to make a date variable input as read-only for a catalog item, allowing users to utilize the calendar feature instead of entering the date manually.
Here is the soluti...
Enforce calendar use by making the date variable input read-only for catalog item in native & portal
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
We often need to identify which flows are running on a particular table. Unfortunately, this cannot be determined out of the box in Flow Designer or Workflow Studio. However, there are two ways to ...
Identify active flows running on particular table
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Often, we need to send only the latest attachment via email. However, using the "Include attachment" checkbox in notifications sends all attachments, making it impossible to send just the latest or...
Adding latest attachment from record to the outbound email
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Often, we need to include the latest comments in email notifications.
To display the most recent comment in an email template or notification body, use:
${comments:1}
If you want to show the ...
Get latest comments in email notification
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Often, there is a need to apply a reference qualifier on a reference field based on whether it's a new record or an existing one. Out-of-the-box (OOB), this distinction cannot be determined.
A wor...
Apply reference qualifier on reference field based on new or existing record
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Out of the box Flow context UI action is available in native view but not in Service Operations Workspace.
If you wish to show it in workspace then we need to modify the OOB UI action.
Ensure you...
Flow context UI action in Service Operations Workspace for RITM
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Sometimes there is a requirement to add/remove fields in the Overview tab for incident in Service Operations Workspace.
You can configure the incident form view where view name "SOW-Incident-Overv...
Display additional fields in Service Operations Workspace Incident Overview tab
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Many a times there is a requirement to hide the label of MRVS in native and portal.
OOB there is no method to achieve this requirement.
Below script will help us achieve the same using DOM manipu...
Hide label of MRVS in native and portal
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Many a times there is a requirement to get the record's display value or number in ATF.
But when we use Record Query step OOB it gives output as record sysId and not the display value of that reco...
Retrieve record display value or number in ATF
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Many a times there is a requirement to show UI page and take input from user and update the current record.
This can be handled using an UI page which gets invoked from UI action.
Something simil...
Update record using UI page and UI action
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Many a times there is a need to print updated field values in email notification wherein we require previous and current field value.
Below are the steps for the same. Please enhance it as per you...
Print updated fields in email notification with previous and current values
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Many a times there is a need to add some delay in your script in server side.
Below script will work in both global + scoped app. The value passed is duration value. I passed 10 seconds in duratio...
Add sleep or delay in your script for global + scoped app
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Many a times there is a need to add help text above checkbox variable in portal as it's not possible to add OOB.
Here is a way to achieve the same in portal.
1. Create a widget: helpText\_above\_...
Add help text above checkbox variable in portal
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Many a times there is a requirement to add some css to variable label such as making bold.
I am sharing sample script for the same, you can enhance it as per your requirement.
You can use this ca...
Make variable label as bold in native and portal
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
If you need to verify whether a scope belongs to ServiceNow, you can use the following script.
Example:
var scopeObj = new GlideScopeAPI();
var currScope = 'sn\_grc\_profiles';
gs.info(scopeObj...
Verify if scope exists in ServiceNow instance
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
Sometimes there is a need to access variables defined on catalog item within MRVS client script to show/hide variables within MRVS.
You can access the variables with this syntax. This works in bot...
Access value of catalog item variable within MRVS client script
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
This is a simple function which can be called to fetch value for any unique key in simple or complex json object.
Example:
var obj = {"name":"Chris","age":23,"address":{"city":"New York","countr...
Parse and get json value for any unique key in json object
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache
You can invoke a record producer on click of UI action in Configurable workspace and send parameters to it.
The parameter can also be parsed and fetched using an onLoad catalog client script.
The...
Invoke record producer within Configurable workspace, send parameter & fetch the value
New article articles in ServiceNow Community
·
about 1 year
www.servicenow.com
cache