We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

Forum Posts

Resolved! Query to find max date

I am trying to find the most recent date in a function query in an attempt to add 7 days and reassign it to the original field.Here is the UI Action that I have tried, but it still only takes the current date and adds 7 days.   Not sure why, at least...

Resolved! Filtering Reference Field with Script Include

I am attempting to use a script include to filter a reference field based on a piece of data on the incident form. The script include is being called and returns an array of the correct entries but the reference field is not filtering. I am using jav...

Resolved! How to capture custom fields in an update set

Hi,I have what is probably a very simple question. If I want to capture just one field change in an update set, is that possible? For instance, if I pick an update set, navigate to the user form in Default view, Personalize the Form and add a field c...

ben_kahn by Kilo Expert
  • 6116 Views
  • 8 replies
  • 0 helpfuls

Resolved! Email Client Template in activity

Hi All,I'm currently looking for a solution to display sent email client template emails in the activity log. I have a ui macro(ref_contribution) that is navigating to an email client template to sent notifications using a form field. How do I get th...

BK9 by Tera Contributor
  • 3511 Views
  • 10 replies
  • 1 helpfuls

How to cancel an import

I'm running a pre import script and testing a condition at the end to determine whether or not to proceed with the import. The wiki is telling me to usecancel = true;as a means to stop the import. However, the import is still occurring. Am i missing ...

Resolved! password_needs_reset Expiry

Anyone how there have a script that they would like to share that checks the user table on a regular basis, and expires "password_needs_reset"?Our Audit team requires us now to provide a 7 day window after the password_needs_reset is updated to true....

Resolved! Update field based on attachment

I have a field 'Has Attachment'(check box) on task table. I want to set the value on this field based on attachment, i.e., if there is any attachment attached to the form, the field 'Has Attachment' should set to 'true'; or else 'false'

kunal16 by Tera Expert
  • 2645 Views
  • 11 replies
  • 1 helpfuls

Resolved! Why isn't URL field keeping the value set by BR?

I have a URL field in a table that I want to be populated by an onBefore BR that parses a link from the description field.After the parse and setting the field, I have a log statement that shows the field has the URL value I want, but when I open the...

russellj03 by Giga Contributor
  • 3246 Views
  • 8 replies
  • 0 helpfuls

Resolved! Hiding field value dependent on another field value

Hi guys,  I have created a UI policy to hide (stop a value from being selected) on a field called 'Subtype' e.g. value 'Minor' when the value of 'Domain' field is e.g. 'Deacons' - while this works if the Domain chosen initially is 'Deacons' if it is ...

ui policy hiding minor subtype.PNG
jas101 by Tera Expert
  • 9951 Views
  • 15 replies
  • 0 helpfuls

set value in slush bucket from client script

HI All,       I have created a slush bucket field in my table and trying to fill up the value on change of another field, But     I am not able to set   value to it, If it is not possible, then why service now provide slush bucket   type dictionary f...

tkalpa005 by Tera Expert
  • 2886 Views
  • 2 replies
  • 0 helpfuls