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

Forum Posts

Client Script On Submit with Ajax

Hello community,I'm wondering if there is the best practise to 'Reject/Abort' submit action on the Client side with GlideAjax. The main issue is observing when we have to validate smth on Submit action. - We can't using methods the "getXmlWait()" any...

Alex150 by Mega Sage
  • 4734 Views
  • 3 replies
  • 1 helpfuls

Check if a user is already in a similar group

Hello I am developing a scoped application that is used to manage the work plans of employees organized in work teams. Each work team has multiple users assigned to it. However, a single user can be only in zero to one work teams. This condition shou...

Hendrik6 by Kilo Guru
  • 2387 Views
  • 10 replies
  • 1 helpfuls

Resolved! Script for close a case

Hi everybody! I want to add a script in my ui action button for close the case in a certain state. Which script should I use?Thanks

Resolved! Variable visibility based on drop down selection

Hi, I am looking for a solution for the below scenario- When the number of containers is selected as 1, 2, or 3 specific variables should be visible as per the table below. I have tried with UI policy and also tried with catalog client script but not...

Piyush27 by Tera Contributor
  • 3217 Views
  • 5 replies
  • 0 helpfuls

Add hyper links to worknotes

I need to add hyper links in work notes from flow designer . Tried below code . It prints the following message, but not as hyperlink. URL works fine when I test this by pasting it in browser    var URL1 = "https://"+gs.getProperty('instance_name')+"...

pardhiv by Tera Contributor
  • 2256 Views
  • 10 replies
  • 2 helpfuls

Resolved! Incorrect dates returned by sysparm_query=sys_created_on

Hi, I'm getting the wrong dates returned from the "incident" table using this url:  https://company.service-now.com/api/now/table/incident?sysparm_query=sys_created_on>javascript%26colon;gs.dateGenerate('2023-01-01','00:00:00') I was expecting to get...

thedavegray_0-1674807796851.png

Outbound HTTP log -1 response status

Hi all,  I have a script include that executes a number of outbound HTTP requests in series. The ServiceNow Outbound HTTP requests log shows "-1" as the response code for one of the requests. I know this request has actually succeeded as the data im ...

Chrisdev by Kilo Expert
  • 928 Views
  • 1 replies
  • 0 helpfuls

Resolved! Virtual Agent multiple queues

I have two service portals on my PDI. I created two virtual agent configurations, two greeting configurations based on portal name. Even though these greeting switching rules work as expected, both chats still write to the same queue! Service Portal ...