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

Forum Posts

Resolved! How to use ATF to test failure

I'm trying to use ATF to test a client script that removes a choice from a choice list for certain users. Essentially, I want to use the Set Field Values step in the Form category. I impersonate a user who can't see the choice and then tell the Set F...

txag08 by Tera Contributor
  • 2876 Views
  • 5 replies
  • 4 helpfuls

Resolved! Change field value after 24 hours

Hello, I have a choice variable on a table called Remote Access Account (u_nhl_remote_access) with choice options: Pending (pending)Complete (complete)Request Again (request_again) The default value is pending. When the value is changed to request_ag...

find_real_file.png find_real_file.png
Hannah C by Giga Expert
  • 2253 Views
  • 13 replies
  • 4 helpfuls

Resolved! Track who updates or deletes attachments from ANY table

So our developer went on medical well that puts me in a bind as I have no background in actual coding.  I review a lot of information from the community on attachments but no "step x step".  I wouldn't expect it as everyone seems to be a developer BU...

Rory6 by Giga Expert
  • 4093 Views
  • 9 replies
  • 2 helpfuls

Resolved! Configuring notifications for multiple internal companies

Hi All,My company is actually a group of operating companies, as such some entities within the group require their own branding on things like service portal and notifications. I'm dealing with notifications now and i'm wondering if there is a more e...

Dubz by Mega Sage
  • 2433 Views
  • 9 replies
  • 3 helpfuls

Resolved! check for is NOT new record in client script

I know how to check if a record is new in a client script by using g_form.isNewRecord(), but I want to check if the record is not new. Can anyone tell me how to do that? I'm trying to make work notes mandatory on AG change, but only if the incident i...

dianeled by Kilo Guru
  • 7174 Views
  • 1 replies
  • 3 helpfuls

Form field not visible in a domain separated environment.

Hi, I have minimal knowledge on Domain separation. My instance is domain separated, and a field on the incident form is not visible. It should be visible on incident form only in particular domain. The field is visible on our Dev instance but missing...

Ashwini3 by Kilo Contributor
  • 2074 Views
  • 2 replies
  • 0 helpfuls

Resolved! Where is the event trigger found?

I created an outage which works fine if I start the outage right away but if I schedule a planned outage it will not fire. My thought is that because the notification for the immediate outage start begins when an event outage.begin.notif triggers the...

find_real_file.png

User profile lock out for 3 unsuccessful login attempts

Hi All, 1) Requirement1 : I have on requirement that if user enters 3 time wrong password in LOGIN.DO page user profile should lock out.Currently i find one OOB script to lock user profile and its working for LOGIN.DO page. var gr = new GlideRecord("...

aahitha2 by Mega Expert
  • 3254 Views
  • 3 replies
  • 0 helpfuls

Resolved! How do I get autoSysField(false) to work?

How is autoSysField(false) supposed to work? I'm trying to use it in a background script to retroactively update request record that are closed but still in the active state and I don't want the sys_updated_by and sys_updated_on to be changed. With t...

Resolved! Update incident.state when attachment is added by caller

HI All, I want incident.state to be updated when an attachment/image is attached to the incident by the caller or opened_by. Scenario: In some cases we request the caller/opened_by to provide additional information in order to resolve an incident. As...

soren_bogvad by Tera Contributor
  • 2735 Views
  • 5 replies
  • 1 helpfuls

Delete orphan records from sys_user_has_role table

Hi Team, Platform  is Jacarta I have an issue with deleting orphan records from sys_user_has_role table.   Gee, answered, install plugin Contextual Security: Role Management Enhancements (com.glide.role_management.inh_count) https://community.service...

tiagomacul by Giga Sage
  • 2788 Views
  • 5 replies
  • 33 helpfuls

Records missing from Table API results

I have been developing an application automate data exports from ServiceNow. Mostly everything works great but there is one issue that has been been bothering me for some time. When querying the Table API often response pages do not contain the numbe...

MikeD314 by Kilo Contributor
  • 4213 Views
  • 8 replies
  • 4 helpfuls