ServiceNow AI Platform forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

Resolved! Create Event to trigger workflow - not working

Hello, i am testing on a dev environment. I have added in Map Transform a onComplete script to send an Event: i tested these 2 methods: var e = new GlideEvent("my_import_servers_1", "", "", "");e.insert(); and tested also: gs.eventQueue('my_import_se...

find_real_file.png
Ed1 by Kilo Contributor
  • 2521 Views
  • 11 replies
  • 3 helpfuls

Text editor on Service Portal widget

I have a requirement for a text editor on the portal, similar to the "HTML Script" field type you see in email notifications. It needs similar functionality that the "HTML Script" field provides.I know about some Service Portal functionality like <sp...

show/hide widget with condition

Hello Experts, I have no idea.. why my code is not working. I want to display the widget when the created condition is met.   html <div class="row" ng-show="data.visible"><div class="panel-group">test content </div></div> server (function() { data.vi...

Brook3 by Giga Expert
  • 3120 Views
  • 4 replies
  • 4 helpfuls

Resolved! Search PDFs within a KB

Colleagues,I have about 4000 documents (PDFs) from scans years ago, and I have them in a KB. How can I search their contents since they are images? Can SN search PDF contents within a KB? I have the KB search in a portal page. I entered "five years" ...

find_real_file.png find_real_file.png

Resolved! Prevent Saturday / Sunday from being selected

Attempting to create a catalog client script to prevent a user from selecting Saturday or Sunday using a Date variable.Tried using the following to prevent a user from selecting Saturday or Sunday and nothing happens when upon submission...function o...

billi_lumley by ServiceNow Employee
  • 2822 Views
  • 6 replies
  • 1 helpfuls

Resolved! M2M - Advanced Reference Qualifier

We are trying to use an advanced reference qualifier for our M2M references to filter to specific "hardware". From reading the forums it looks like "parent" and "current" exists; however, when I do a javascript:gs.error("asd" + parent); I get  org.mo...

Kyle Cribbs by Giga Contributor
  • 2581 Views
  • 19 replies
  • 0 helpfuls

Wait condition in scripts

Hi, Is there a way i can write wait condition apart from workflow/designer for my business rule to run. I want to create an incident when mid server goes down but it needs to have a delay for 1 hour before creating the incident unless the mid server ...

Pradeep67 by Tera Contributor
  • 2072 Views
  • 5 replies
  • 0 helpfuls

Resolved! Setting current date and time in a Flow

OK.  I know this should be real simple but not getting the code to work. I am setting a date field using a script instead of a data pill in one of the steps in a flow using the following code: var invite_dt = gs.nowDateTime(); return invite_dt; The s...