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

Forum Posts

Default sort order to override last user sorted preference

Hi All,I am trying to set a default sort order for a table, which has to override last sorted column by any user. Ideally service now remembers the last sorted column by users and display the list as per his last setting when he logins back. I want t...

farci by Mega Expert
  • 5934 Views
  • 5 replies
  • 2 helpfuls

I GlideQuery conditional where

I want to be able to include an additional where clause based on a condition, so I tried something like thisvar gq = new global.GlideQuery('sys_user').limit(10).where('active', true); if (role_required==true) gq.where(new global.GlideQuery().where('...

Colleen by Tera Expert
  • 1139 Views
  • 2 replies
  • 0 helpfuls

Test Management import/export tests

I want to start using ServiceNow Test Management 2.0 for my UAT manual tests during client deployment. We have a number of tests existing that we would need to be imported to Test Management Tests, with their steps.  Also, not all of our clients test...

Steve212 by Tera Contributor
  • 4131 Views
  • 6 replies
  • 4 helpfuls

How to send image from a rest api to external system

I have a requirement to send photos from live_profile table to external system. Using Rest API Explorer I tried to create REST API on live_profile table but in the response there is no value setting in the photo.I also tried to build api url on sys_u...

Poorna7 by Tera Expert
  • 1499 Views
  • 1 replies
  • 0 helpfuls

Resolved! Notification is not trigger on case table

Hi All, On insertion of a new case on "sn_customerservice_case" table, a notification will be triggered, but this is not working from past 4 days. We even tried creating a new notification but it is also not triggering. This issue is only on case tab...

Madhuri8 by Tera Expert
  • 2574 Views
  • 6 replies
  • 0 helpfuls

How to call REST API from fixscript/background script

Hi everybody,I'm attempting to use a fix script to call a REST API in order to copy data from instance 1 to instance 2. I have the following script, however, it removes data from instance 1 instead. What could possibly have gone wrong?**export XML et...

tsoct by Tera Guru
  • 2545 Views
  • 1 replies
  • 0 helpfuls

Priority is not updating with business rule script

Ive tried using this script and the priority never changes. Ive only been able to set them when priority lookup on dl_definition.list  table is inactive. Any help is appreciated  gr.impact.setDisplayValue  = "2 - Medium";gr.urgency.setDisplayValue = ...

BrianS5_0-1676398818175.png
Brian S5 by Kilo Sage
  • 1306 Views
  • 1 replies
  • 0 helpfuls

How to delete work notes from any record

I have deleted the work note record from journal entery table and audit tabl;e also, but the work note is still there in the incident ticket. please sugest how can i delete that and please do not provide any url as on internal i am getting confused 

VIKAS MISHRA by Tera Contributor
  • 4181 Views
  • 3 replies
  • 2 helpfuls

Store Apps available on PDI

I saw a few posts on Twitter that store apps can now be made available to a PDI.  Is there any documentation on how a vendor can do this?  I have a store app that is not working properly in our instances and have been troubleshooting the issue with t...

Rick Mann by Tera Expert
  • 7074 Views
  • 5 replies
  • 4 helpfuls