We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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

Forum Posts

Resolved! Change a Request Item Field Based on Approvals

Hello, I have a catalog item that sends an approval task to multiple people based on the role they selected on the form. So for example, Role A has Approver 1, 2, & 3 and Role B has Approver 4, 5. Only one person for each role needs to approve and af...

bdsibert by Tera Contributor
  • 5228 Views
  • 13 replies
  • 4 helpfuls

Resolved! copy additional comments to work notes

Hi All,   On incident table, I want to copy additional comments to work notes and delete the additional comments . I want to do this as one time activity so looking to write background script for this. I tried below script for one incident ( I need t...

Learn SN by Tera Contributor
  • 4358 Views
  • 8 replies
  • 8 helpfuls

Resolved! Removing Users from group(s) via workflow Run Script

Hey all,I am working on a script for a Run Workflow activity and am stuck. Here is an overview:User submits a form on the Portal that creates a RITM. When they Select the option "Remove Access" another field pops up with a list of the current groups ...

Community Alums by Community Alums  
  • 7631 Views
  • 12 replies
  • 3 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
Community Alums by Community Alums  
  • 11531 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
  • 8808 Views
  • 7 replies
  • 5 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
  • 4738 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
  • 6058 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
  • 7520 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
  • 6181 Views
  • 6 replies
  • 3 helpfuls