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

Forum Posts

Pass variable from HTML to client script in UIpage

Hi Folks, I am calling a UI page from UI action and passing some info to the page. I need to pass this from html to client script of UI page. I tried it using the below script but it is not working....HTML- <g:evaluate jelly="true">var id = RP.getWin...

Webhook Question - ServiceNow to External 3rd Party

Background: We have a company that uses their custom built tool to track incidents , they do not have an open API that we can use to push incidents from our snow instance.Main Question: Is there a way we can create a webhook for them that they can su...

Neel Patel by Tera Guru
  • 5289 Views
  • 2 replies
  • 5 helpfuls

Script include response

In one catalog item i need to populate Ids(ID field) ids of users (NAME field)sys_user table.So when i type users in the name filed lets say user1,user2,user3,user4. The corresponding ids are populated as(Id4,Id3,Id1,Id2) without sequence i mentioned...

Resolved! how to populate selected users manager in catalog item

SCRIPT INCLUDEvar UserDetails = Class.create();UserDetails.prototype = Object.extendsObject(AbstractAjaxProcessor, {     getManager: function() {         var user = this.getParameter('sysparm_name');        var mgr = new GlideRecord("sys_user");     ...

PRITHVIRAMESH_0-1683983983131.png
Community Alums by Community Alums  
  • 1060 Views
  • 2 replies
  • 2 helpfuls

Importing Lodash as a Script Include

Hello all,I was inspired by this video to try and import lodash   into ServiceNow as a script include. I was able to save the code as a script include, but I am unable to use it. the _ doesn't seem to be defined. Has anyone managed to do this or some...

bbarber9 by Giga Expert
  • 9547 Views
  • 5 replies
  • 2 helpfuls

Flow Designer Question :- Action "Do the following,until "

HI All,I have the following example:I have three tables, and whenever a record is added to or modified in Table 1, a flow is started with the instruction to "Do the Following, until Record Count is 1."It will check Table 2 to see if a certain entry h...

pratapdalai by Tera Contributor
  • 1096 Views
  • 2 replies
  • 0 helpfuls

Resolved! Get value of variable

Hello everyone, Recently I'm having a lot of difficulty with the following question: I'm having to hide a form field,But the validation must be done on top of the parent's variables. But, not the form variables, but those that the user selects on the...

MatheusRissi2_0-1683901264229.png MatheusRissi2_1-1683901304478.png

DeleteRecordAjax SI - GlideCascadeFromDelete API

Does Somebody know how to get all cascade table? I find an OOB Script Inlcude: "DeleteRecordAjax". But I do not know how works this API: GlideCascadeFromDelete.getCascadeTables(tblName, objSysId, stackName); I would like to use this script but in sco...

imre_mile by Tera Contributor
  • 976 Views
  • 2 replies
  • 2 helpfuls

Resolved! com.glide.script.RhinoEcmaError: "action" is not defined.

Hello Everyone, we have a bug that when someone clicks the new ui action on a related list it just redirects them back to the same form. nothing from a configuration has changed and this has just recently been acting up. this is the script on the ui ...

Rob37 by Tera Contributor
  • 5002 Views
  • 5 replies
  • 1 helpfuls

How to compare previous value and current value of date field?

Hi All,I have a requirement stating that, In my form there is date/time field. I need to write a client script on that field. Whenever i select the date before last 6 months of previous value it should throw me an error/warning like "Date cannot be b...

abhi710 by Tera Contributor
  • 1590 Views
  • 7 replies
  • 0 helpfuls