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

Forum Posts

Resolved! How to restrict character limit of a string field?

Hi, Taking description field in Incident table as an example. I have set the Max length of description field to 4000 characters. But when i update this field through a script( i am not sure if the same happens when i update manually), i can even upda...

Role Based ACL Advanced Script

I am trying to create a custom ACL script so users with the "specifc_group_manager" role have read only access to incident records where the caller has the "specific_group" role. However, we do not want the user with the "specifc_group_manager" role ...

Matt Steill1 by Kilo Contributor
  • 8017 Views
  • 2 replies
  • 4 helpfuls

Manipulating a Formatter

The Resource management plugin has a functionality to add events to your calendar. This event page writes records to the resource_event table. The form contains a Schedule Date Range Selector formatter with the schedule_date_range.xml macroIssue 1. I...

Formatter.png
amsko by Kilo Explorer
  • 3710 Views
  • 5 replies
  • 3 helpfuls

Resolved! How to Check Multiple Mandatory fields in UI action

I have a use case in UI action if the fields are empty we need to abort the action and display mandatory message  ,, we already has UI policies for making mandatory for those fields , but when i click on UI action it is ignoring the mandatory conditi...

RudhraKAM by Tera Guru
  • 4626 Views
  • 9 replies
  • 6 helpfuls

Populate Multi Row Variable Set from Table

I have a custom table that contains items related to various types of supplies. It's a simple table containing fields for item category, item, description, quantity, etc.  I have a catalog item with a multi row variable set (mrvs). The variable set m...

John Shores1 by ServiceNow Employee
  • 4970 Views
  • 4 replies
  • 0 helpfuls

Resolved! UI Policy to change the other fields value

Hello Guys, I have a form, In this form I got 2 drop downs [ 'Department','Gender' ] *Values in Department [ 'IT', 'FIN', 'COMM' ] & values in Gender [ 'M','F','T' ] #what i want to do here is, >>> When i select "IT" value from Department, Gender dro...

Mr_Blue by Tera Expert
  • 7322 Views
  • 2 replies
  • 2 helpfuls

How to create/update/close incidents using Java rest API

Hello guys, I'm new to servicenow, and I read the doc but I got lost. not what I used to. Here my requirement is I need to create a new incident with the Java code. and updated/close it while creating incident I want to assign it to a user/group of u...

Ikenahim by Kilo Explorer
  • 8100 Views
  • 4 replies
  • 0 helpfuls

Resolved! Does anyone know how the $sp.getVariablesArray() call work?

The request fields are not displaying for the "Request Fields" portal widget. Through logging and testing, I am getting a blank/empty array for the $sp.getVariablesArray() Portal API call. I have read through all of the documentation and there is not...

nicksoltis by Kilo Expert
  • 3212 Views
  • 2 replies
  • 2 helpfuls

Resolved! Displaying child tasks under the parent project

Hi all I have a tas table and a project table, the task table has a parent reference field to parent projects. i want to display the child tass under the parent project, similar to what is shown below can anyone help?

find_real_file.png
Kev McLeod by Kilo Contributor
  • 2630 Views
  • 1 replies
  • 0 helpfuls

Widget: parse response from c.server.get

c.parameters = {sys_id: sys_id, action: "getCustomerBySysId"};               c.server.get(c.parameters).then(function(response) {                       console.log("customer", response.data.customer);                       console.log("name", respons...

stryker129 by Mega Guru
  • 7368 Views
  • 9 replies
  • 2 helpfuls