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.

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

Forum Posts

I can't use window.location.href on Server but can on Client

On my Service Portal widget, I can only use window.location.href on the client and not the server, it says "Server JavaScript error "window" is not defined.", how can I retrieve the current URL on the server, or alternatively pass it from the client ...

Shane18 by Kilo Expert
  • 6963 Views
  • 5 replies
  • 3 helpfuls

Reconcilation CI

Since I have multiple sources and do not have CMDB 360 installed on my instance, the requirement is to update the "IT Application Owner" field using the "Dragnet" source only if the "IT Application Owner" field is empty. However, sometimes we update ...

Screenshot 2024-03-18 at 5.48.57 PM.png
VP7 by Tera Contributor
  • 317 Views
  • 2 replies
  • 1 helpfuls

Unable to find methods in client script

Hello All,  When I use g_form i am unable to find methods like addInfoMessage, Error message etc.Can anyone know what is the issue here ?Instance - Washington   

Aryan_0-1710853388817.png
Aryan by Tera Contributor
  • 389 Views
  • 3 replies
  • 0 helpfuls

Resolved! Need help with script to pass value from <sn-record-picker> field on custom widget HTML to the server script to be used in a GlideRecord

hi all, I'm building a widget to act as a very simple custom record producer.  My form only has 2 fields on it, one of which is a reference field to the [sys_user] table.  The form creates a new record on the [incident] table with a custom "u_affecte...

How to assign the Tags to RITMS records

Hi Community,    Using on change client script I need to assign the created tag to RITM  for which dollar amount is equal to 100k dollar & when the dollar amount is less than to 100k I need to remove the Tag from RITM.How can I achieve this?  Thanks,...

Manu143 by Tera Contributor
  • 1188 Views
  • 5 replies
  • 4 helpfuls

Resolved! How to create Related List

Hi All, I have requirement 1)company table (core_company) Default view.2)contract table (ast_contract)  In ast_contract table there is field Vendor which is reference to core_company table. My requirement is we should created new related list- contra...

Sirri_0-1710777857684.png
Sirri by Tera Guru
  • 985 Views
  • 13 replies
  • 1 helpfuls

Resolved! Creating a report with case.

Hi Everyone, I want to create a report with case table. I have to show the sum of  time duration for which cases were open i.e duration between opened date and closed date of case. For example: There are three cases :Case 1: It was open for 1 Day 2 H...

case table.PNG