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

Forum Posts

Resolved! Where can I find API / Object Reference Documentation?

I'm just starting out with scripting (advanced section of a task) and they give the example of: task.short_description = current.short_Description; I'm asuming short_description is a property of the task object? Question 1: Where is the documentation...

Trigger subflow from Data Source/Transform Map

I have created a Custom (Load by Script) data source with the following script:(function loadData(import_set_table, data_source, import_log, last_success_import_time) { try { var currentDate = new GlideDateTime(); //Get today's date/tim...

conanlloyd_0-1668832867303.png
conanlloyd by Giga Guru
  • 1195 Views
  • 3 replies
  • 0 helpfuls

Resolved! Create Report with Dynamic Filter Dates

Hello Community, I need your help with the following: I want to create a report that will help me filter the change request records in a current (specific) week. For example in Change Request, I want the records with Planned Start Date from Wednesday...

LuLe Game by Tera Expert
  • 2237 Views
  • 3 replies
  • 0 helpfuls

Resolved! How can I add a day to GlideDateTime object in scoped app?

In global scope, I could something like the following:     new GlideDateTime().addDaysLocalTime(1)However, this doesn't work in a scoped app.   And, as far as I can tell, GlideDateTime makes it very difficult to set an accurate date/time value from a...

Resolved! Flow Designer Question - XML Export

Is there any way to export a Flow Designer code to XML and then be able to restore it without using an update set. Education will be appreciated. Luis   

Luis Roman1 by Tera Contributor
  • 10463 Views
  • 1 replies
  • 0 helpfuls

UI Script for portal redirect based on role not working

I have this UI script (function() {var isInternal = g_user.hasRole('snc_internal', true);if(!isInternal) {var loc = window.location;//var oldUrl = loc.protocol + "//" + loc.host + loc.pathname + loc.search + loc.hash;var newUrl = loc.protocol + "//" ...

Garrett2 by Tera Expert
  • 1090 Views
  • 1 replies
  • 0 helpfuls

Info Message not Dissapearing

How should I remove the info message from the portal once I call it from the spUTIL in client script, tried many ways, the latest is at the bottom. I dont want to do it through Backend, only frontend.  Is there any way to add a timer on infomessage s...

Coder2 by Tera Contributor
  • 891 Views
  • 1 replies
  • 0 helpfuls

Apply a PDF page header footer template to a report

Greetings,Newbie here, trying to figure out how to "Apply a PDF page header footer template to a report".Article below does not quite explain it.https://docs.servicenow.com/bundle/tokyo-now-intelligence/page/use/reporting/concept/c_PDFPageHeaderFoote...

Leon Els by Tera Expert
  • 1951 Views
  • 3 replies
  • 1 helpfuls

Resolved! How to show Business elapsed time in incident table report?

1) I have created reference field in incident table. name- u_business_durationreferencing task_sla table2) created BR on task_sla table with when-after insert , update (also tried before-after update)script:(function executeRule(current, previous /*n...

Query1 by Tera Contributor
  • 2298 Views
  • 4 replies
  • 1 helpfuls

Update function in OOB read only script include

I would like to deactivate comments made by system when group approvals are approved or rejected. Found the code in SI "ChangePolicyApprovalActivitySNC" called in function "_refreshGroupApprovalState" . I found another extension SI ChangePolicyApprov...

snowdev658 by Tera Contributor
  • 1160 Views
  • 2 replies
  • 0 helpfuls

Resolved! How to pass results from one query to use in another query

Hello Developers, I am trying to retrieve the sysid from some user generated events from the syslog table. Get the message from the syslog table, slice the string and only return the value I need which is the sysid value. Use the sysid values and que...

Nelson Ma by Tera Contributor
  • 1887 Views
  • 3 replies
  • 2 helpfuls

How do we connect tags between objects in the CMDB

We are tagging Applications w various software dependencies.We want the servers that are downstream from those applications to be able to inherit those tags. Example:A custom application has a tag of "SQL"That application has a server, which we want ...

Robert T by Tera Contributor
  • 2572 Views
  • 9 replies
  • 3 helpfuls