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

Forum Posts

Call JS include in service portal

Hi,I want to call JS files from service portal.I have tried to use the JS includes tab in the themes, however it doesnot seem to work.Do I need to call it by making a UI script?Regards,Ark

ark6 by Mega Guru
  • 11612 Views
  • 5 replies
  • 6 helpfuls

Multiple selection in catalog

Hi,There is one variable in catalog and that is referring to cmdb_ci --- OS name i.e choice table which is having more than 100 choices.So now if I want to have multiple selection of choice done at same time and transfer all of the choices selected t...

Vibhor by Tera Contributor
  • 1750 Views
  • 4 replies
  • 0 helpfuls

How to change URL query parameter dynamically

Can anyone help on the below script how to pass the caller value in the url parameter since its not working.var gr = new GlideRecord('incident');...gr.query();if (gr1next()) {var caller=gr.caller_id;var url="https://xxxxxx.service-now.com/nav_to.do?u...

sobitha by Kilo Contributor
  • 4194 Views
  • 3 replies
  • 4 helpfuls

Resolved! script insert row in table

Hello Ladies and Gentlmen,I have a table call 'u_test' and there are the fields 'field_one' and 'field_two',i would like to write a script that will create a row in this table with 'field_one' and 'field_two' fill.My current attempt was with:var data...

lamson_ by Giga Contributor
  • 23103 Views
  • 18 replies
  • 10 helpfuls

create sla for custom table

Is there a way to create an sla definition for a table that isnt extended from the task table?

Community Alums by Community Alums  
  • 6453 Views
  • 7 replies
  • 0 helpfuls

Resolved! get value of sys_id

I have the following in my email script :template.print(event.parm1.getDisplayValue());It does display a bunch of number which is the sys id. How do I get the value of the sys id of the user?

SNnewbie2 by Tera Expert
  • 6445 Views
  • 7 replies
  • 1 helpfuls

Resolved! Dotwalk in Glide AddQuery Possible?

Is it possible to dotwalk in an Addquery filter conditon?Here is what I am trying to do. I am attempting to get the top 5 most frequently requested items by the current user. I was able to get this to work by using the opened by field on the RITM but...

johansec by Tera Guru
  • 10105 Views
  • 1 replies
  • 3 helpfuls

How to add custom angular directive in service portal widget?

I'm trying to get the bootstrap function popover to work within ng-repeat in service portal widget. It looks like a need a directive similar to:app.directive('bsPopover', function() {       return function(scope, element, attrs) {               eleme...

zachp1 by Kilo Contributor
  • 7091 Views
  • 2 replies
  • 2 helpfuls

i want to add years to a date field.....but addYearsLocalTime() & addYearsUTC are not working,so i tried to add years by converting them into seconds and then addSeconds but that one is also not working in an application scope ......

here is the code i wrote !!every output is as expected . but the variable "add" is showing output as undefined. unable to add seconds to it.m writing this code in an application scope.var warranty_date=new GlideDateTime('2017-12-02 00:00:00'); //warr...