Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

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

Forum Posts

Resolved! Check if field value changed from UI action?

Hello,Similar to 'changes()' on business rules (and) 'current/previous' objects on client scripts, is there an easy way to identify if a field value changed from a client side UI action?Thanks in advance.ctomasiMichael.Fry

snowtech1 by Tera Expert
  • 5310 Views
  • 2 replies
  • 2 helpfuls

Resolved! how to test \ execute "run script" scripts

Maybe this is a stupid question but for the life of me I cannot find any answers anywhere.Firstly, I'm an administrator who writes code \ develops for automation \ a hobby and very new to ServiceNow and trying to get my head around how all this works...

johnrecz by Giga Contributor
  • 8479 Views
  • 3 replies
  • 4 helpfuls

Resolved! Can a task be closed automatically?

The client's requirement:   If x = Informational then Open task and automatically close. My question: Can a task be closed automatically in the workflow?As far as I know , the user can close the task manually , not sureif   a task   can be closed   a...

sonita by Giga Guru
  • 6920 Views
  • 9 replies
  • 8 helpfuls

How are applications (scope) moved within update sets?

I've done a lot of development in instances that use Fuji or ealier, so working within scopes is new to me.   How are applications moved within update sets?   Do I always have to take the action to "Publish to Update Set" or is it captured in the ini...

Dobbyn by Kilo Explorer
  • 5740 Views
  • 2 replies
  • 3 helpfuls

Resolved! Setting Default Values

Is there a way to set a default value by using a UI Policy?   I am making some changes to our change_request form.   We have 3 types of Change Requests:NormalStandardEmergencyIf Emergency is selected, I need the Out Of Band value to be automatically ...

how to update "updated by" field.

i'm creating incident record from the workflow , i want to set the "updated by" field as some default user name.when ever the incident is created the updated by field is updated as "system".

mv by Tera Contributor
  • 4613 Views
  • 2 replies
  • 2 helpfuls

How to hide a menu application from a user with no roles

I have users in my system with no roles.  These users only see the self-service portal.  In some cases these users will get the back-end environment open with the portal in the main screen and the filter navigator on the left.On this screen they ha...

reganr by Tera Contributor
  • 6577 Views
  • 4 replies
  • 1 helpfuls

Contract State and Substate

How can you change the state and substate of a contract that is already expired?There is a write ACL that prevents you from doing this, but the customer needs the State / Substate changed back.Thanks,Karen

Cupcake by Mega Guru
  • 2479 Views
  • 3 replies
  • 0 helpfuls

Resolved! Enforce unique record with multiple criteria

I'm still relatively new to scripting and while learning pretty well from examples in my dev environment and from great information here, sometimes I hit some snags. Right now I'm trying to modify an OOB script to enforce unique account numbers on th...

Marcel H_ by Tera Guru
  • 5022 Views
  • 5 replies
  • 5 helpfuls

Resolved! Script Include - not working unless in Global Scope

I currently have one Script Include that returns undefined when I try to create an instance of it.However, when I copy all of the code into a new Script Include in the Global scope (replacing the name), it works perfectly.I have made the Script Inclu...

josephdt12 by Giga Contributor
  • 4913 Views
  • 3 replies
  • 1 helpfuls

Resolved! Manager Approval in the workflow

There is a field on the change form called Requested by (requested_by).In the workflow I need to have manager's approval . in fact manager is requested by's manager. This is my code for manager approval which is wrong and it gives error:I also tried ...

find_real_file.png find_real_file.png find_real_file.png
sonita by Giga Guru
  • 14424 Views
  • 4 replies
  • 9 helpfuls