Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

Forum Posts

Resolved! PA script time difference from now

Script I have:var diff=function(x,y){return y.dateNumericValue() - x.dateNumericValue();};var mins=function(x,y){return diff(x,y)/(24*60*1000);};mins(current.opened_at, current.now);I need something to replace the now that will give me the time diffe...

Dan Johnson by Tera Contributor
  • 3306 Views
  • 8 replies
  • 0 helpfuls

Record count in database view

How to create a record count in database view? I can't do this with core reports. The record should include these fieldsHeader 1Header 2Header 3Header 4Header 5QuestionDatePersonResult= yesResult= No

fkameka by Kilo Contributor
  • 2289 Views
  • 2 replies
  • 3 helpfuls

Resolved! Database view filter for 'is not null'

Hello,I'm looking for the syntax for how to filter a database view for a field is not null. Example&& inc_major_incident_state="rejected"-If a database view using the incident table had the above filter condition added to the where clause it would re...

Jon Wagner by Mega Expert
  • 3595 Views
  • 3 replies
  • 0 helpfuls

Resolved! Scheduled Email of Report throwing error: Illegal use of while loop in sandbox scope: org.mozilla.javascript.Parser.whileLoop

Hello, I'm not sure what I am missing here.  Executing Scheduled Email of Report with below condition script.  If I hardcode the grList value, it is working.  This schedule is var answer=false; var scheduleReport = new GlideRecord('sysauto_report');s...

Babeth1 by Kilo Explorer
  • 2437 Views
  • 9 replies
  • 0 helpfuls

Time Since Now() in a Function Field in a Report

I have used the function field feature in reporting. I want to do a function that tells me the number of days (duration) since the last update. This means that I need to know today's date/time - Now(). I cannot use any other functions (other than tho...

jmiller0666 by Tera Contributor
  • 2695 Views
  • 1 replies
  • 0 helpfuls
Labels