Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

Forum Posts

Resolved! Regex for phone numbers.

I'm not too good with Regex.  Does anyone know how I could format it so that a phone number field will accept only numbers, parentheses, and minus signs?  Currently it's set up as /^\d+$/ and the field only accepts numbers.

Andrew122 by Mega Expert
  • 8472 Views
  • 5 replies
  • 3 helpfuls

Resolved! accessing notification type from inside an email script

Hello,  I've got no way of knowing how to even approach a problem like this. Say I've got an email script that needs to dynamically change based on what notification it was sent out in. e.g. a script named metadata If a "Incident has been assigned to...

JP56 by Kilo Contributor
  • 2321 Views
  • 8 replies
  • 7 helpfuls

Metrics and business rule

Hi, We have a requirement to calculate business duration and duration fields on SC task and RITM as the difference of total duration and on-hold duration (custom fields). We had created a metric for calculating the on-hold duration, and then used the...

anusarma by Kilo Expert
  • 1681 Views
  • 2 replies
  • 0 helpfuls

Need help to pass values in a JSON object

Hello All,   I am trying to dynamically pass few value (which are fields on the form) into the JSON object which is as below: var obj = {"name": "value1", "image": "value2"}; The value1 and value2 are the field values on an incident and i have a requ...

avi2329 by Tera Contributor
  • 3056 Views
  • 3 replies
  • 1 helpfuls

Does UI Policy override ACL?

I've a custom field on change_request form and have restricted it to be read only when state is greater than authorize. I've a write ACL to make is editable only for users with role CAB manager. When I login as CAB manager, the field is still read on...

Community Alums by Community Alums  
  • 2692 Views
  • 9 replies
  • 0 helpfuls

Resolved! Why does my script include return "empty"?

Here's the situation: I get an XML object back. The problem is that it only ever has the elements and attributes that were added during the request. I can't get an answer/value back from the server. I have a UI Action calling a Script Include. The Sc...

find_real_file.png
JCavin by Kilo Contributor
  • 2129 Views
  • 3 replies
  • 3 helpfuls

I'm writing a Chrome extension that would enable client-side scripting in ServiceNow Express using the client-side Glide API. Do you think I'm going to get sued if I release this?

So I've figured out how to essentially enable client-scripting in ServiceNow Express using a Chrome extension (firefox and other extensions would also be possible). What I'm wondering is, do you think I'd be breaking any laws (doubtful), or effective...

Resolved! Inbound action to avoid duplicate incident.

Hi, Inbound email action to avoid duplicate incident. If the incident is created using inbound emai action with the same CI name it's state is Resolved/closed it should create new incident. if the state is open/active it should not create new inciden...

Resolved! Refresh List after showQuickForm() UI Action not working

Hi All, I have a UI Action as a List banner button which I want to open a dialog box update, close multiple catalog tasks at the same time selected from a list. It works fine, updates and closed all tasks, however I cannot get the list to refresh onc...

find_real_file.png
Daniel203 by Giga Contributor
  • 2563 Views
  • 6 replies
  • 0 helpfuls