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

Forum Posts

Adding a Hint to a Field

Hi -I am tyring to a hint to one of my fields, which has a two part name - and I keep ketting an error message. Hint will not save because the label description is trying to save the field name as a script and that keeps giving an error.Does anyone h...

tsam by Kilo Explorer
  • 2063 Views
  • 5 replies
  • 0 helpfuls

Problems with Date and daysAgo()

Hey everyone, having issues with getting the contents of a glide date field and getting the date from 7 days ago. var date = current.week_starts_on; var thisTime = date.getGlideObject().toString(); var time = thisTime.setValue(gs.daysAgo(7)); gs.add...

Mikolz by Kilo Contributor
  • 2300 Views
  • 3 replies
  • 0 helpfuls

Scheduled Script - Check For Duplicates???

Hi Everyone, is it possible to check for duplicate records in a scheduled script job? I am almost to the end of this time card project - there are just a few loose ends that need to be tied. Heres the scheduled script... var string = "roles=itil^dep...

Mikolz by Kilo Contributor
  • 1615 Views
  • 8 replies
  • 0 helpfuls

Email Notification Action Override

I have an e-mail notification setup based on the sc_request table. The default value in the User_Field is to send the email to u_customer. For specific requested items I would like to override this field via script to send to requested_for. I see tha...

dbaril by Tera Expert
  • 1726 Views
  • 4 replies
  • 0 helpfuls

Pre-Import script to set field value before import

Hi All,I was hoping somebody would be able to help.....How do I update the value of a field for all records in a table via script? Example: I want to change the 'u_Active' field in the 'u_whatever' table to 'false' for all records in that table.I kno...

JBrennan by Giga Contributor
  • 2867 Views
  • 3 replies
  • 0 helpfuls

Resolved! View and Navigation Stack - visible server-side ?

Is there any way to determine the current view or examine the navigation stack from the server side?I'm trying to write a condition for a Business Rule or UI Action which applies only to the Mobile view (specifically, either block certain state-chang...

Using Glide script to update a field

Hi - I am trying to use a glide record to updated a field based on the selection from another field.I have a table that has columns:field1 field2chair seattable clothBelow is that I have and it's not working: :-((-------------------------------------...

tsam by Kilo Explorer
  • 2436 Views
  • 16 replies
  • 0 helpfuls

Entitlement Scripts

Hi AllCan you get to the 'current' record within an entitlement script?I'm using gs.log('Item removed:'+current.sys_id); as a starter, but would like to dotwalk from the sc_cat_item to another table to determine if the cat item is valid or not.curren...

thomaj3 by Kilo Contributor
  • 2001 Views
  • 4 replies
  • 0 helpfuls

Inserting comments and work notes into sys_journal_field

How can I insert a work note into activity history for a given incident?The way I am attempting to do it is via direct web service insert, which appears to be working because I get back a response with the sys_id of the new row created in sys_journal...

jmurtha by Kilo Contributor
  • 10004 Views
  • 7 replies
  • 2 helpfuls

Integration via JDBC from a UI Action

From a ServiceNow Newbie.....I have managed to get a JDBC connection into a SQL Server database and tested the SQL query I need to execute. I would like to add a button to a ServiceNow form that basically passes and executes the SQL (referencing valu...

craigclarke by Mega Contributor
  • 1856 Views
  • 6 replies
  • 0 helpfuls