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

Forum Posts

Resolved! I have a script include that is quering a user and returning all of the assignment groups the user is in. I am only getting one group being returned when there are supposed to be several.

I have a script include that is querying a user and returning all of the assignment groups that the user is in. I am only getting  one group being returned when there are supposed to be several. Any thoughts?  Here is my script include: function getU...

smetsch by Kilo Contributor
  • 4359 Views
  • 9 replies
  • 6 helpfuls

How to capture IP Address of user?

Hi , i have to capture IP address of user, to identify user making changes. Every time user updating any changes that many times IP address should be captured and stored somewhere for reporting purpose.  

Resolved! condition using IN operator

in below argument condition i want to add "^Location in ( gs.getUser().getLocation())"--  user can have multiple Location.please suggest correct syntax &sysparm_fixed_query=sys_created_by=javascript:gs.getUserName()^company=javascript:gs.getUser().ge...

find_real_file.png

Resolved! How to show Error Message on table API

Hi, I have written business rule to show error message when user try to delete a record in the table. Its working fine, I can the error message on the Form. But When I try to deleted record in the table by Table API in Rest API Explorer, doesn't show...

Upender by Giga Expert
  • 2999 Views
  • 4 replies
  • 1 helpfuls

Resolved! Not able to blank out choice field using updateMultiple

On a choice type field, record by record update (to blank) works. But updateMultiple doesn't blank outs the value but retains the previous value. Ex: var gr = new GlideRecord('table');gr.addQuery('sys_id', 'IN', 'sysId1,sysId2'); gr.setValue('choice_...

Muthu Ganesh by ServiceNow Employee
  • 2583 Views
  • 2 replies
  • 7 helpfuls

(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template, /* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action, /* Optional GlideRecord */ event) { var rmb = new global.RenderMai

Greetings Everyone, I've been messing around with this for a few hours, it's starting to drive me nuts.  Can someone be so kind as to tell me how I can have text in the Body of the Outlook message this script below will open when the icon is clicked....

rob125 by Tera Contributor
  • 3409 Views
  • 6 replies
  • 0 helpfuls

Resolved! I want to save my query results in an array and later use them in the next activity in a workflow. The array only saves the first result a couple of times. I want each result to be saved in the array. Thanks

var targetPrioTwo = new GlideRecord('x_327210_project_consultants') ;targetPrioTwo.addQuery('currently_available',true);targetPrioTwo.query(); while (targetPrioTwo.next()) { targetPrioTwo.addQuery('qualification','=',current.required_requirement); ta...

Hilberto by Kilo Contributor
  • 2455 Views
  • 4 replies
  • 6 helpfuls

Resolved! Modal Widget in Portal

Hi,  I need help creating a modal in the service portal. I want to launch the create incident record producer (or possibly other catalog items) in a modal window. Is this possible?

Mike_R by Kilo Patron
  • 15276 Views
  • 2 replies
  • 9 helpfuls

Exclude sub OUs in LDAP

How to exclude a sub-OU in importing an OU into ServiceNow? I have an OU ABC with few sub-OUs and I don't want one of the sub-OUs in ServiceNow.How to exclude the users from one the sub-OU and if not how could I not update/insert these users in Servi...

Pintu2 by Tera Expert
  • 2491 Views
  • 8 replies
  • 1 helpfuls