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

Forum Posts

Query on getDayOfMonth() method

Hi,When we run the following code in one of our server side scripts we get the output as 1var gdt = new GlideDateTime("2012-8-02 06:00:00");gs.log(gdt.getDayOfMonth());Whereas when we run the following code in one of our server side scripts we get th...

tj2 by Kilo Contributor
  • 3309 Views
  • 7 replies
  • 0 helpfuls

stop logs

logs are getting created automatically in my service now instance. I have deleted the scripts and all but still it is generating logsAny ideas hw to stop those logs..?Its impacting our system performance..Any suggestions would be great help!!

lokesho by Kilo Explorer
  • 1425 Views
  • 3 replies
  • 0 helpfuls

Reload Form On Click Action

Hi,I want to get some alert when Reload Form is clicked through Right-Click UI Action. But, not able to figure out on how to get know when reload form is clicked.Can anyone please help me out with script?Thanks & Regards,Amisha

youngistan by Mega Contributor
  • 9324 Views
  • 4 replies
  • 1 helpfuls

Dot walking UI Policy issue

I have two fields on a form. Both are reference fields and both are mandatory. One is for a monitor and the other is for a computer. I want to set it up so if you choose a monitor in which its "Status" field is set to "Shared", I want to remove the m...

Reopen Request and Restart Workflow

I know under most circumstances one does not want to reopen a request, but rather open an incident or another request to follow up on the previous. With that said.... I currently have a catalog item for our Estimators for Voice/Data Services. On occa...

Scripting a note in the Activity Log

Can I add a comment to the Activity Log via a script?We have a client script which makes a REST call (http get) to an external system, which triggers a customer satisfaction survey email.If the Http Get call returns 200, I'd like the Activity Log to ...

Customizing the width of fields on a producer or form

I am currently using a record producer to insert new records into a table; however, I'm having trouble customizing the look and feel of it. I have several single line text variables on the producer that I would like to customize. I have two problems ...

by  
  • 2059 Views
  • 6 replies
  • 0 helpfuls

Script Background - GS.PRINT - value from databse

Hello,Before I write the text here I want to thank you to all who spend time to read and reply on this, Thank You.(I had opened same topic some time ago - name was""" script background - gs.print how to get the result to excell ? "" but there were no...

Pastupe by Mega Guru
  • 41961 Views
  • 11 replies
  • 0 helpfuls

Mandatory field required based on State change

Hi all,I am trying to figure out how to get a field on the defect form to be set to mandatory when a state change happens. I am trying to make a field (u_product_version_tested) on the rm_defect form mandatory when the state goes from Development Don...

ngriffiths by Mega Expert
  • 7211 Views
  • 2 replies
  • 1 helpfuls

Finding director in management hierarchy

I am attempting to setup a script to navigate "up" the manager hierarchy to find the users Director.We pass the users direct manager from an import and pass a "manager level" field that cooresponds to where you are in the org.In this case, a Director...

shill by Mega Sage
  • 2832 Views
  • 2 replies
  • 2 helpfuls

Script type dictionary entry

Hi,Has anybody used dictionary entry of "script" type. If yes, Please tell me how do i use this dictionary entry?. How can we execute the code written in this dictionary entry?.

MKhan1 by Giga Contributor
  • 2095 Views
  • 7 replies
  • 0 helpfuls