The CreatorCon Call for Content is officially open! Get started here.

Developer forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

Matches Regex in Condition Builder

I'm trying to build a condition which matches a string to a regular expression. Matches Regex is a default option in the condition builder for String-type fields, per the wiki Condition Builder - ServiceNow Wiki. However I can't seem to figure out th...

gtke by Tera Contributor
  • 14717 Views
  • 12 replies
  • 3 helpfuls

Response code for REST triggered flows

Hello! We have a REST-triggered flow that needs to return a specific response code - 200. One would expect that to be the norm but it seems that ServiceNow returns 202 (Accepted). This functionality is often used for webhooks and most webhooks expect...

Resolved! Modify Requested_for field by script

Hello; For a business need, I need to modify the field "Requested for" of RITMs by script. I did the following test in a background script:var grRITM = new GlideRecord('sc_req_item'); grRITM.get('<sys_id of the RITM>'); grRITM.setValue('requested_for...

Sylvain12_1-1686145888154.png
Sylvain12 by Tera Contributor
  • 1054 Views
  • 6 replies
  • 1 helpfuls

How to create a reports & dashboards on Incident SLA?

Hi All.I have requirement on creating a reports & dashboards on Incidents ''SLA''. report 1: Percentage of incidents that meet Response SLA report 2: Percentage of incidents that don't meet Response SLAreport 3: Percentage of incidents that resolved ...

prash4 by Tera Expert
  • 3667 Views
  • 13 replies
  • 0 helpfuls

Resolved! amHow to fetch reference field data using widgets server script

 I am trying to create a custom widget which will take customer order number input and need to display account details of that customer order. I am struggling with fetching the customer account reference from customer order table. please is my code s...

Muru by Giga Expert
  • 1162 Views
  • 6 replies
  • 1 helpfuls

Resolved! Remove empty space from task and RITM view

Hi All I have written the client script to hide upon the condition of one location variable, but on the RITM and Task level the spaces are very high as it is hiding the variablesCan we remove the spaces?

hydu9535 by Tera Contributor
  • 717 Views
  • 3 replies
  • 2 helpfuls

Resolved! New Line not being honoured in script output

I've got a BR to copy the cause, fix and workaround details from a Root Cause Analysis problem task to its parent problem when the task is closed.The issue is that the first \n's that I output as part of the copy appear to be getting ignored. I've no...

spike by Mega Sage
  • 1670 Views
  • 2 replies
  • 2 helpfuls

Resolved! Disable couple of Scheduled jobs

We are in the process of upgrading our instances to Utah. After cloning activity in dev. I am asked to disable some scheduled jobs. Can anyone explain, what they meant by "disable schedule jobs". Are they asking me inactive the schedule jobs or is th...

Resolved! Catalog Builder update sets - Do I need them all?

In Tokyo, Catalog Builder now creates a self contained update set with your changes when you create or update a Service Request.If create a new SR I get update_1 (example name - bears no relation to actual name!).If I then update that SR I get update...

spike by Mega Sage
  • 3827 Views
  • 4 replies
  • 7 helpfuls

Resolved! Make a checkbox ticked based on a value

Hey guys, I'm creating my own widget for fun but I got stuck on one part now. This is how it looks like Here is the HTML code <div> <!--<pre>{{c.data.people | json}}</pre>--> <table style="width:100%"> <tr> <th>Name</th> <th>UserID</th> ...

find_real_file.png

Resolved! Need help with JavaScript String substr().

Hello,I have a string contains "abc\1234"I would like to extract from the back slash and get the number only such as "1234"Can someone please help?  Thank you 

Annie10 by Tera Contributor
  • 2150 Views
  • 16 replies
  • 7 helpfuls