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

Forum Posts

Resolved! Access GlideRecord from within service portal widget.

How can I run a Glide query from in a widget? (Service Portal) This code runs fine in the script-background editor, but it doesn't work in the Server-script section of my widget: var grTask = new GlideRecord('task'); grTask.get('number', "REQ0323232...

patrickhunt by Tera Contributor
  • 2988 Views
  • 3 replies
  • 4 helpfuls

Resolved! Convert Array of Arrays of Objects to Array of objects

Hi, I need to convert Array of Arrays of Objects to Array of objects. Here is the data-var newresponse = [ [ { "alias1": null, "alias2": null, "alias3": null, "alias4": null, "created": 1573046331, "desktoptokens": [], "email": "test1@ex.com", "first...

aamir1 by Mega Expert
  • 2785 Views
  • 4 replies
  • 1 helpfuls

Resolved! Notify users of excessive attachment size

Hi folks,I have previous raised a question about inbound action script that prevents excessive attachment from attaching.   After attempting to implement the script, I realised ServiceNow seems to stop the email from processing if an attachment is ov...

georgechen by Kilo Guru
  • 4986 Views
  • 8 replies
  • 3 helpfuls

Resolved! When using an email script, what is "current"?

i have an email script/business rule working together. When i try to query fields from the table in my script, it removes everything from my notification. When a user is terminated that is listed in the user field of a u_cmdb_ci_table_access_paramete...

find_real_file.png
othomas1 by Kilo Guru
  • 7443 Views
  • 2 replies
  • 1 helpfuls

Include previous email conversations to outbound emails

Hi, has anyone developed a way to include a previous email conversation to outbound emails, or a way to reply to a received email including the original message?No need for that in standard notifications, but would be a nice feature to have a way of ...

trekonen by Kilo Explorer
  • 2173 Views
  • 3 replies
  • 0 helpfuls

Resolved! Dynamic List on Catalog Item (For Example a Visitorlist)

I'm searching for an Opportunity to create a dynamic List on a Catalog Item. Usecase: For every Visitor hast to be 4 Variables on the Item (First-Name, Name, Date of visit, time ).  There is no Problem to create this for one User!BUT What I am lookin...

Meloper by Kilo Sage
  • 1798 Views
  • 4 replies
  • 1 helpfuls

Resolved! How to clear selection

I have the below select feature field. When i change the selection of select feature, the action option ,which by default is doesn't select any of the option, should be remove the slection and be back to 'no option selected' format. How to do this?

find_real_file.png
SNOW39 by Tera Expert
  • 3501 Views
  • 5 replies
  • 1 helpfuls

How to return the value from Callback function

Hi All, I have client script with GlideAjex and it's returning the value properly I want to get out the callback function return value but it's not working function onChange(control, oldValue, newValue, isLoading, isTemplate) { if (isLoading || n...

ramesh_r by Giga Sage
  • 5080 Views
  • 9 replies
  • 0 helpfuls

Using System properties in a scoped application

Hi all,  I'm currently having issues trying to figure out how to use system properties in a scoped application.  I want to copy a global property for use in my scope but I cant seem to get it working. We cant use the global property, because it alter...

leachy23 by Kilo Expert
  • 8930 Views
  • 6 replies
  • 4 helpfuls