XMLHttpRequest();
Hi Team , Can you please guide me how to call var client=new XMLHttpRequest();from Script Include, i have few parameters to be added to api call, so i cant use Rest Outbound here,please suggest me
We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more
Hi Team , Can you please guide me how to call var client=new XMLHttpRequest();from Script Include, i have few parameters to be added to api call, so i cant use Rest Outbound here,please suggest me
Hi All,Could anyone please let me know how to add or subtract two duration field? below are the line of codes:-var gr = mi.getNewRecord(); gr.start = current.sys_created_on; gr.end = current.sys_updated_on; var duration = gs.dateDiff(gr.start.g...
So the reason I'm doing this is to get around a bug in servicenow. The issue involves Resource Workbench and it overwriting my date with their hard coded default date.My Business Rule:When: BeforeQuery: true (the rest false)No filter conditionsAdvanc...
I am creating a front end portal that requires using g:evaluate to call on variables from different tables. For example:<g:evaluate var="jvar_user_name"> var gr = new GlideRecord('sys_user'); gr.get('sys_id', gs.getUserID()); gr.first_name; ...
How to prevent multiple logins with the same user id at the same time from different devices(computers)?
We developing a catalog item with a form which has 2 variables tied to each other.I'll call them field_1 and field_2. They are both "Select Box" type variables.The choices in field_1 will determine the options available in field _2.Since I can't make...
Hello everyone, Actually, I try to develop an UI action who open email_client.do in a pop-opI use the GlideDialogWindow method for my window, but I don't know how to link with email_client.doAfter that, it is possible to pre-fill the target field ?e...
Okay, here's a stumper. On our incident form, default view, we have the Contextual Search Results formatter. This is good.When you type in the short description field, the formatter expands, and suddenly there are two "Related Search Results" buttons...
Example if (!g_form.getControl('location')) return;
Hello,I'm trying to write a UI Action to perform some operations on multiple records selected in a list. I've created the UI Action and selected 'List Button'.I'm using this well tried and tested method from SNC Guru, to run a client side script befo...
Hi,In short: I'm trying to update selected list items using a UI Action + UI Page, but the processing script doesn't run properly.When standing in the list view and having one or more items selected, I want to open a popup that asks the user for a co...
I need to place a link to a knowledge article in the help text on a record producer. Is this possible?A record producer label is a variable.The variable's Question section has Help text and Description fields.I would think that I could achieve what I...
Hi all,Need to some help to set value received in a string field with format mm-dd-yyyy to date field(not datetime field). Can anyone help here. I am setting this value in variable of catalog item.Thanks in advance.Richa
Hi everyone,I've trying to calculate the duration of tasks. I've got a simple business rule that does in fact update the duration but I noticed something that I would like some help understanding. even though it updates the field correctly with the v...
Is there any SOAP or REST api which can get the list of tables Both standard and custom tables present in serviceNow?

