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

Forum Posts

Server-side equivalent to g_scratchpad?

Is there a server-side equivalent to g_scratchpad?What I'm try to accomplish is to build a List Choice UI Action that runs on the server (client not checked). I want to retain a unique identifier that will be used for each record that is checked to b...

Integration via JDBC from a UI Action

From a ServiceNow Newbie.....I have managed to get a JDBC connection into a SQL Server database and tested the SQL query I need to execute. I would like to add a button to a ServiceNow form that basically passes and executes the SQL (referencing valu...

craigclarke by Mega Contributor
  • 1462 Views
  • 6 replies
  • 0 helpfuls

Authentication using SOAP protocol

I can create new tickets in servicenow using the SOAP protocol using a dev tool, soapUI.Now that I know what my XML looks like, I need to add a SOAP-ENV:Header to my XML for the credentials.Does anyone know what fields or XML tags are required to pas...

rhether by Kilo Contributor
  • 893 Views
  • 2 replies
  • 0 helpfuls

How to create a new ticket using an URL

Is there a way for me to create a ticket in Servicenow by posting to our URL:e.g. https://myinstance.service-now.com/incident.do?Customer=123?Issue=sitedown?Urgency=lowOf course, I am not using the correct field names.If someone could point me in the...

rhether by Kilo Contributor
  • 2248 Views
  • 6 replies
  • 5 helpfuls

How to check character limit on Translated HTML fields

Hi,I want to add a check on the Knowledge form,Text field (type : Translated HTML) - If you type in more than 65,000 chars then want to alert that "Char limit exceed"How can i achieve this?Another thing which I am not clear is on Text field on Knowle...

tj2 by Kilo Contributor
  • 2211 Views
  • 3 replies
  • 0 helpfuls

getRoles() for user object - how does it work?

I can't seem to find any info on the getRoles function. The wiki says that it returns all of the roles of the current user and gives an example:var myUserObject = gs.getUser();myUserObject.getRoles() returns all of the roles of the current userI'm tr...

by  
  • 6541 Views
  • 1 replies
  • 0 helpfuls

Scripting the Wait for Completion option?

A bit of background: I need to create a number of tasks for different groups based on whether or not a field is filled out in the item they're requesting. I've done this by implementing a turnstile that creates catalog tasks, but the built-in 'Catalo...

dbrown1 by Kilo Contributor
  • 3144 Views
  • 2 replies
  • 0 helpfuls

Copy From One Field To Another Field

I am trying to find out how to copy data from one field to another field if the first field contains data.For example if "current.caller_id.u_location.u_location_information" contains data then I need it to be copied into "current.caller_id.location....

AliGeeJay by Kilo Explorer
  • 3328 Views
  • 1 replies
  • 0 helpfuls

Edit readonly fields of a base table in extended tables

Hi,I have a different kind of requirement from what is discussed in these forums. There is a read only field (called u_solution_id ) defined in cmdb_ci table. There are many more tables that are extended from this base table. But just for one of the ...

pravTel by Kilo Contributor
  • 1186 Views
  • 3 replies
  • 0 helpfuls

Stop duplicate records from being created

Hi everyone, I have a UI action that is on the task table and when clicked creates a record on a user created table (u_m2m_time_card). When a record is created is it bringing over the task number and who created the record. The problem I am having is...

Mikolz by Kilo Contributor
  • 4231 Views
  • 5 replies
  • 0 helpfuls

Using JavaScript 'IN' Operator

JavaScript has a nifty operator called IN which allows you to process a query on an array of options. Example:if ( foo == "bar" || foo == "foobar" || foo == "foo" ){ //...}// can be written asif ( foo in { bar:1, foobar:1, foo:1 } ){ //...}Here are...

elemonnier by Tera Expert
  • 9222 Views
  • 1 replies
  • 7 helpfuls

Resolved! Marquee Text in Banner(Header)

Recntly, I have set the marquee tag in banner text.It's working fine.The problem is when we logout the session its redirect to login page in that,marquee tag has shown in the banner.Could you please anyone help on this?Please find the attachment for ...

Change order guide tab

On the order guide, when you are on the Choose Options screen, the only way you can tell what tabs have mandatory fields is by the small asterisk. Does anyone know of a way to add to that, say something like change the background color of the tab?

Notification upon Item Due Date expiration

We just recently went live with ServiceNow Aspen, so I'm new to this.We have a need to notify the currently active teams when the Due date for an Request Item has expired. The way we currently have it written it is based off of an update to the item....

hiekeld by Kilo Contributor
  • 1485 Views
  • 2 replies
  • 0 helpfuls