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

Forum Posts

Hide a module in the navigation pane

Hello,I want to hide a module 'Custom Assets'   when the current logged in user is not a manager. Is there any way of scripting this?I tried writing a Before query business rule on the modules table to list all modules except Custom Assets but it hid...

Resolved! How to set a phone number on record producer?

Hello. I created a variable to get the user to enter a phone number. I would like to limit this variable as below. ・Only half-width numbers numbers can be entered. ・Set the maximum number of characters Now, i set 'type' to 'Single Line Text' so shoul...

s_s by Giga Contributor
  • 3570 Views
  • 7 replies
  • 5 helpfuls

Triggering an event from a Fix Script

I am trying to trigger an event from a fix script which I will eventually convert into a scheduled job. I want to basically trigger the event when there are any new records created on a custom table that day. I have the below script which I can see h...

anfield by Tera Guru
  • 4018 Views
  • 5 replies
  • 0 helpfuls

Article Body (text) field in Knowledge Base Articles

I import some knowledge articles from another system into a staging form.  Now I'm trying to create a new Knowledge Article but the Article Body is blank after my GlideRecord.  I've tried a couple of things:This doesn't work (gr2.text is blank):     ...

kemmy1 by Tera Guru
  • 3524 Views
  • 8 replies
  • 0 helpfuls

Bootstrap alert-warning vs gs.addInfoMessage style

Does anyone know a way of using Bootstrap's alert-warning style in place of the default gs.addInfoMessage() or gs.addErrorMessage() styling? I'm trying to do this in a display business rule.I've tried playing around with hacky CSS stuff, but that had...

info.JPG warn.JPG

Logout should redirect to Login page

Hi Team,  We were using SAML and the user clicks on logout , it is redirected to the SSO login page wherein user will be asked to entered credentials whereas when we recently moved from SAML to multisso , when the user clicks on logout it is not redi...

Resolved! How to create Knowledge Article using ATF?

Hi All, I am trying to create a ATF to create HR Knowledge Article. However I am unable to select Knowledge Base as a field itself when I have selected Set Field Values Operation for Table kb_knowledge. It does not come in the list of fields and henc...

vish1 by Kilo Contributor
  • 3420 Views
  • 6 replies
  • 2 helpfuls

Resolved! Assigning value for reference field maps in Scripted IRE

Hello, I am currently working on a cmdb scoped application that imports external devices from a 3rd party into Servicenow. Currently working on importing software instances installed on devices. The devices themselves have already been imported into ...

Omar_Sanchez by Tera Contributor
  • 2268 Views
  • 4 replies
  • 0 helpfuls

Resolved! pass parameter to page with widget via page url

in service portal i have a page with one widget the server script on the widget needs a sysid i thought i could put the sysid in the url and retrieve it in the server script on my widget, like so:   my url is: myservicenow.com/sp?id=mypageid&sysparm_...

ggg by Giga Guru
  • 14114 Views
  • 2 replies
  • 15 helpfuls