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

Forum Posts

Resolved! Flow JDBC step Complex Object Output

Hello, We have a requirement to set the priority of a request equal to the highest priority open order in our Oracle database. Using Flow Designer we've created a JDBC step and successfully tested a connection and query. The query returns an integer ...

find_real_file.png find_real_file.png find_real_file.png find_real_file.png

What is SNC.RoleManagementAPI() used for?

I see below script in a create ACL on grmember table. Need help to know what it is doing actually. var rmAPI = new SNC.RoleManagementAPI();if (!rmAPI.isAllowedToGrantGroup(current.group)) answer = false;else answer = true;

Chandler2 by Tera Guru
  • 6196 Views
  • 4 replies
  • 6 helpfuls

Resolved! Business Rule to Close INC and Create RITM

Hello all, I'm very new to scripting, but I'm trying to put together the following: Expectation:If a user is in a group called MXUsers and they submit an INC, it should be closed and a REQ should be created and trigger the workflow for a specific cat...

Tyler Jones by Tera Contributor
  • 2234 Views
  • 5 replies
  • 0 helpfuls

Resolved! UI Action Condition - multiple conditions not working

Hello,I have a UI action and I need to add 2 conditions to the "Condition" of the UI Action. The logic is if user has demand_screener role AND state is 8, 28, or -4 OR if user has demand_manager role AND sate is not 8, 28, or -4 Here is the code i ha...

SandyL83 by Tera Guru
  • 1401 Views
  • 2 replies
  • 0 helpfuls

Debugging Script Includes

I am trying to debug a script includes being called by an artifact configuration.I have inserted a "gs.log" statement at the very beginning of the script includes.I have inserted a second "gs.log" statement at the very beginning of the first function...

Alan11Robin by Tera Contributor
  • 4082 Views
  • 11 replies
  • 2 helpfuls

Service Portal Public Widget - Add attachment ?

Hello, I have create a public widget on service portal to allow not logged-in users to add attachments to a custom table.   The pop-up is opened to choose a file but when i click OK it seems that something block with permissions :    Adding attach...

find_real_file.png find_real_file.png find_real_file.png
ASA5 by Mega Sage
  • 6314 Views
  • 9 replies
  • 3 helpfuls

Resolved! Need to restrict Date field

Hi All, I have a requirement to restrict a date field to be not more than 2years from another date field. Example, If the field Date_A is '25-05-2023' then we should restrict to select only up to '24-05-2025' in Date_B field. Can you please help to a...

How can I get login user userId and password

Can anyone help me? I stuck over a situation where I need to get login user password and user id .I can able to get the user Id by using   the following code .But I cant able to get password of the login user. Servicenow does not display the user pas...

rock2freedom by Mega Contributor
  • 11614 Views
  • 4 replies
  • 1 helpfuls

Resolved! glide.ui.reference.readonly.clickthrough

Regarding the sys_property "glide.ui.reference.readonly.clickthrough", I understand that if it is set to false then whenever a reference field is in a READ ONLY state, the Preview (I) button will be hidden, thus preventing the user from Previewing th...

G24 by Kilo Sage
  • 2437 Views
  • 2 replies
  • 3 helpfuls

Issue with text/keyword search

We are facing an issue with keyword search which seems to be working on one instance (our dev instance) but not working on the other instance (our UAT instance). I have attached screenshot from both instances below:   Can somebody help me to understa...

Abhijit4 by Mega Sage
  • 2015 Views
  • 1 replies
  • 0 helpfuls