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

Forum Posts

Resolved! Method to determine if an attachment exists

Hello community.  I'm creating a scheduled script that will copy an attachment from event to alert.  Is there a condition that can be included in "addEncodedQuery" that will determine if the record has an attachment? At present, I have - emAttach.add...

Scott Ness by Mega Contributor
  • 3553 Views
  • 3 replies
  • 1 helpfuls

Resolved! isMemberOf in client side

Hello Everyone, I've a requirement. In the change task form, i've to make state field as read-only, when the logged in user is not a member of the assignment group of the change task. I've tried with the below script include, var CheckNilfiskAdminGro...

Resolved! Add text to catalog item for Service Portal

I am still unable to add info text to a catalog item (more specifically in my case; Order Guide) that is visible when using the Service Portal.Does anyone have a suggestion for a work-around?A few versions ago, we used to be able to set an HTML field...

find_real_file.png find_real_file.png
scwillson by Mega Guru
  • 10758 Views
  • 8 replies
  • 5 helpfuls

Resolved! Table Row Count

Hi, How to row counts for each table in servicenow Please give me solution

Amit Singh1 by Tera Contributor
  • 8262 Views
  • 7 replies
  • 5 helpfuls

Transform map Scripts

Hi, Can someone let me know why its importing record from excel. Requirement: Ignore a record to be inserted if u_name field on source records is empty. I have created onBefore scripts as below (function runTransformScript(source, map, log, target /*...

find_real_file.png
Vignesh21 by Kilo Guru
  • 3180 Views
  • 10 replies
  • 0 helpfuls

g_scratchpad

Hi Team,  Can someone explain me where the value is displayed in the form after we retrieve the value from g_scratchpad using client script, NOTE: g_scratch pad is used to get the value from the server which is not there in the client end. So after w...

Keshav5 by Kilo Contributor
  • 4339 Views
  • 8 replies
  • 0 helpfuls

Resolved! How to get the display value of an encoded query?

Is there an easy way to convert an encoded query such as:active=true^caller_id!=3643044b6ff851406b7283bc5d3ee42b^ORcaller_id=NULLto make it look how it looks at the top of a ServiceNow list?All > Active = true > Caller != Data Center OperationsFor cu...

find_real_file.png
MG Casey by Mega Sage
  • 5535 Views
  • 9 replies
  • 9 helpfuls

Resolved! Current DateTime in Client Script

I'm trying to return the current date so I can make sure a change request isn't schedule for the past in a client script. I've tried to use GlideDateTime, but my research has shown that this is a server side object.   In one of the threads on this to...

juriggs by Kilo Expert
  • 6595 Views
  • 4 replies
  • 2 helpfuls

Multidimensional Array

How can I create a multidimensional array in a script include and pass it to a client script?  In the client script, I  am trying to populate a choice list with the values from the script include.  My searchResults array is returning all items in one...

kanielb1 by Mega Expert
  • 5647 Views
  • 6 replies
  • 3 helpfuls