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

Forum Posts

Field type "Document ID" to be used in a business rule

Hello All, Could anyone help me to query on field type "Documnet id"?. I'm currently using below (function executeRule(current, previous /*null when async*/) { var gr1 = new GlideRecord("policy"); gr1.addQuery('number', current.number); gr1.query();...

'samaccountname' AD attribute missing when browsing

Hi Guys,I can't seem to pull out the sAMAccountname attribute when browsing the LDAP directory from within ServiceNow. I'm using the default filter from SN:(&(objectClass=person)(sn=*)(!(objectClass=computer))(!(userAccountControl:1.2.840.113556.1.4....

find_real_file.png
gabby3 by Kilo Contributor
  • 6970 Views
  • 6 replies
  • 0 helpfuls

Resolved! Show Error Message

 I have 2 client scrip like below for my register form //Date of birth check function onSubmit() function onSubmit() { //Type appropriate comment here, and begin script below var DoB = new Date(g_form.getValue('date_of_birth')); var CurrentDate = ...

find_real_file.png
escanor by Giga Contributor
  • 10667 Views
  • 7 replies
  • 3 helpfuls

Resolved! system ui messages with dynamic variable

HiI am trying to create a new system ui message with dynamic argument which needs to be translatedHere I am sharing how it's configured alert(getMessage('Additional company'+i+'details' must be entered'));and   have created entry in ui messages table...

kdevireddy by Kilo Expert
  • 14891 Views
  • 17 replies
  • 11 helpfuls

Resolved! Adding interceptors

Hello, I am trying to add a interceptor to a custom app but it doenst seem to be working? I also tried to add an interceptor to incident.do .. What am I missing

find_real_file.png find_real_file.png
Woz by Tera Contributor
  • 5598 Views
  • 8 replies
  • 3 helpfuls

Resolved! How do I convert XML object to String ? Requirement is: to replace < and > with < and > respectively and make the string back to XML format. Sample XML is shown as below.

<res0:value> &lt;ns4:id xmlns:ns4="urn:v3.diagnostic.dar.services.bgc"&gt;20182300020601349&lt;/ns4:id&gt; &lt;ns4:globalResult xmlns:ns4="urn:v3.diagnostic.dar.services.bgc"&gt;Done&lt;/ns4:globalResult&gt; &lt;ns4:detailedResultsBlock xmlns:n...

nm13 by Kilo Guru
  • 6945 Views
  • 3 replies
  • 4 helpfuls

g_form.getParameter is not a function

I am going through testing for Kingston to make sure all items dont get javascript errors. I am getting an error for an error that worked on the CMS but not Service Portal. I am not a developer so I am not sure how to replace this code for it to work...

mattrom1 by Giga Expert
  • 4312 Views
  • 5 replies
  • 1 helpfuls

Resolved! Help on using script include on Service Portal widget

I am developing a custom widget on service portal and I have all the logic coded out on the Server Script. Now I realized that i can reuse some of the logic and want it to be reusable in the future for other widgets. How can I set up a script include...

JC S_ by Mega Guru
  • 4815 Views
  • 18 replies
  • 0 helpfuls

Resolved! How to build a Service Catalog for dummies?

Greetings Folks. Still new to ServiceNow and I've been tasked with building a Service Catalog. The creation of the categories was simple enough, But building the actual catalog items is a challenge. I simply don't know enough about the tool, and even...

Resolved! Mobile App - setRedirectURL

Hi, Having some problem with redirect action in the mobile app. We have the following action.setRedirectURL ('new_call_list.do?sysparm_userpref_module=17d70e8ddb69f2000056f7adae961901&sysparm_view=service_call&sysparm_query=u_call_group=5073a8274fb11...

Resolved! Adding a new mapping field between CI and Asset

Hi guys I have tried to add a new field "IMEI" to the alm_asset and the cmdb_ci - tables. The idea is that when the user change the IMEI on "asset" it will be changed on "CI" just like a lot of other fields on "asset/CI". Then I have added a new ent...

find_real_file.png find_real_file.png
priisholm by Mega Expert
  • 2693 Views
  • 2 replies
  • 1 helpfuls

Resolved! Workflow color code

Hi there,   I am a beginner of SNOW .I need help to resolve this workflow question: There is a catalog variable choose color with values red,blue,yellow. If red means no approval required,how can i achieve this with work flow ?   Please assist me .