Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

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

Forum Posts

Resolved! Calculating currency field - Result doesnt have proper format

When using a script to calculate two currency fields and show the sum in a 3rd currency field it's not returning the proper formatting.  function onLoad(control, oldValue, newValue, isLoading, isTemplate) { var tot= 0.00; var f1 = g_form.getDecimalV...

find_real_file.png
Chad31 by Mega Expert
  • 5070 Views
  • 10 replies
  • 0 helpfuls

Is it possible to access scratchpad in transform scripts??

Is it possible to access scratchpad in transform scripts?? I have a requirement, where in I need to compare target table records with the input records and mark the unwanted records in target table as inactive    Please recommend.

asoni1 by Kilo Contributor
  • 3327 Views
  • 10 replies
  • 0 helpfuls

Rest API call fails with error {"error":{"message":"User Not Authorized","detail":"7831 records constrained due to ACL restrictions"},"status":"failure"}".

I am pulling blocks of records from the projects table using the Rest API using this URL (<<mycompanyname>> is the actual name)   https://<<servicenowinstancename>>.service-now.com/api/now/v2/table/pm_project?sysparm_display_value=true&sysparm_offset...

Resolved! Number of time onStart transform event executes.

As per the docs for the onStart transform event ->"When: The onStart event script is processed at the start of an import run, before any data rows are read."   My understanding was it  will execute only once despite any number of records I might inse...

asoni1 by Kilo Contributor
  • 5217 Views
  • 20 replies
  • 1 helpfuls

On the Question of Data Separation...

The need to securely segment data between groups, departments, or even locations is constant, even within IT organizations. What organization doesn't have a particular group that is subject to extenuating compliance requirements that necessitate that...

Resolved! jQuery in UI Script

Hello, From the forums I have learned that in a Client Script of a UI Page, I can use $j to utilize jQuery. Example:  $j.find(".class") This works fine.  However, I have now created a UI Script that will be called from multiple UI Pages.  I cannot se...

Form being submitted without mandatory fields filled in

On the new_call table users are able to save the form without the mandatory fields being completed. i.e. when clicking on new call and clicking on create task it re-directs to the call type tale e.g. incident, service request. However, this can be do...

ashfaq by Tera Contributor
  • 2999 Views
  • 7 replies
  • 0 helpfuls

Resolved! SP Container Row/Column "CSS Class"

So I notice here: Row and column CSS that you can choose a CSS Class... however, where are those classes defined?  The fields are not reference fields, they're string fields. I have custom CSS I want the container rows/columns to use.

xiaix by Kilo Sage
  • 7125 Views
  • 4 replies
  • 5 helpfuls

Populate table from REST message & scheduled job

I created a RESTmessage to obtain data from an external API.  I am now attempting to create a scheduled job with a script in order to put that REST data into a table i built.  Here is my code (scheduled job).  I feel like I am close because it is cre...

dhazlettjr1 by Tera Contributor
  • 4135 Views
  • 4 replies
  • 2 helpfuls

Create Change from Incident

There is a Create Change button on Incident and I am trying to see why it isn't working. Qualification is current.incident_state != 7 && gs.hasRole("itil") && gs.fieldExists('incident', 'rfc') && current.rfc.nil() As far as I know gs.fieldExists is n...

tahnalos by Kilo Sage
  • 2426 Views
  • 6 replies
  • 0 helpfuls