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

Forum Posts

Generating C# classes for tables

Hi,  Can anyone please tell me the quickest/safest way to generate C# entity classes for the various ServiceNow table (endpoints?) ?  I have gone down a bit of a rabbit hole in generating C# classes from the json response using online converters such...

u_template.png u_template2.png

Resolved! error issue in Rest

hi all,i am using this script to creat  aincident. and after test it then this error show. (function process( /*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {// implement resource herevar req = request.body.data;var category = req.category...

GlideRecord sent as event parm, not working as expected

Greetings,I have an event that I am triggering through a BR. Here is a sample below:gs.eventQueue('sn_scoped_app.event.queued', null, previous, current));In the handler, I am currently trying to get the GlideRecord and access its methods.gs.info('Eve...

Resolved! Why GlideDateTime doesn't works in object?

i tried to take this date, but GlideDateTime doesn't works inside Object:var gdt = new GlideDateTime("2011-08-31 08:00:00"); var date = gdt.getDate() gs.info(date) var obj = {}; obj.date = new GlideDateTime("2011-08-31 08:00:00"); gs.info(JSON.stri...

Resolved! Set field mandatory using Script Include and Client script

Hi, Im trying to set the field Operational Impact as mandatory using Script include and on load client script.I set an Alert in order to see what Im getting from the script include and lm getting 'false' even tho the conditions are met and I suppose ...

Screen Shot 2023-01-16 at 10.42.28.png Screen Shot 2023-01-16 at 10.43.34.png
Alon Grod by Tera Expert
  • 1511 Views
  • 14 replies
  • 2 helpfuls

How to hide preview this record icon on portals

Hi all, I created a reference variable and I applied a catalog client script on the variable to pull the user data automatically. It is showing the user name along with a preview icon it displays the entire user profile details. How can I able to hid...

poornimabatchu_0-1673875946404.png

How to capture the value of caller's department

Hi, I have this script include and im trying to get the callers's department but i see the system logs that im not getting anything. I tried to type inc.caller_id.department but it didnt work as well. How can I capture the reference field department ...

Screen Shot 2023-01-16 at 13.48.11.png
Alon Grod by Tera Expert
  • 648 Views
  • 6 replies
  • 0 helpfuls

Unified Navigation Menu Config

Hi,Just wanted to ask if anyone else on glide-sandiego-12-22-2021__patch9-11-10-2022 has noticed the name field missing from Unified Navigation Menu Config (sys_polaris_menu_config.name). I have a Tokyo pdi and it is present on there. It is impossibl...