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

Forum Posts

Workflow and Email Notification

Hello, I'm trying to trigger a workflow when certain condition is met and then I want to notify the users about the change through an email. I want to use the existing template I've created but the mail doesn't gets delivered.

harikarao by Kilo Explorer
  • 3149 Views
  • 5 replies
  • 0 helpfuls

Want current table name in a BR ?

Hi I have written a BR on sys_attachment table to remove existing attachment with same name and update with the latest one . I need this logic on all SN table's so i am looking to get the table name of the form i am creating attachment for .Please fi...

Resolved! gsftsubmit not calling the UI action from UI macro

Have written a simple code section in the UI Macro to call the gsftsubmit, not sure why its not calling the UI action.in a further debug in chrome it seems to be calling the gsftSubmit function of SN and going till f.submit() but doesn't gets into UI...

kumvipin by Mega Contributor
  • 2783 Views
  • 9 replies
  • 0 helpfuls

Resolved! To close all tasks before closing requested item

Hello All,we have a scenario where user should not be able to close requested item until and unless all the tasks related to that requested item are closed,for the same there is a before update business rule as below.var rec = new GlideRecord('sc_tas...

moulik1 by Kilo Guru
  • 1750 Views
  • 11 replies
  • 0 helpfuls

Convert variable data to lowercase

We have a string variable that we'd like to either force the data entered to be lowercase or either convert the information to lowercase once the record producer is submitted.     This variable is populating the cmdb_ci on a change request.Here's par...

alhicks by Tera Guru
  • 10799 Views
  • 7 replies
  • 0 helpfuls

Database View querying

Hi,I want to query a view, I am using GlideRecord to query the same, Will GlideRecord work? or do we have to use any other way to query the view.I am not able to understand how to refer to the fields either.Can any one help me out in querying the vie...

uma17 by Tera Guru
  • 3672 Views
  • 7 replies
  • 0 helpfuls

Aging days- Exclude weekend calculation

Hi,We have created a custom application and that was went live before three months. Now we need to calculate the aging days[from opened days to till now] for the ticket that needs to exclude weekend.I tried by scheduled job without excluding weekend ...

Resolved! Client side check if item is either Requested or Catalog item

Hi,I want to determine on catalog client script if the current item being viewed is either Requested Item or Catalog Item. This is because I want a consolidated script that will run on both Requested and Catalog items but with special handling to eac...

dalton1 by Giga Expert
  • 2244 Views
  • 4 replies
  • 0 helpfuls

Resolved! Scripting Questions

These days I have been learning how to use ServiceNow scripts. I was stuck- in couple of scripts one in a UI action and another one in an e-mail template. I received help from various users here which I really appreciated. While navigating the script...

Deleted checkbox in Email logs

What is the significance of Deleted check-box present in Email logs. I have checked the logs for mail sent to the Snow application for ticket creation. Please find attached screenshot.

Chandresh by Tera Guru
  • 2829 Views
  • 1 replies
  • 1 helpfuls

Month Year Picker

Hi All,Has anyone reconfigured a GlideDate field to pick and display month and year only?I have been researching it...I found a pure javascript in an html page; there is one about Event.observe in servicenowguru on how to default the time to zero.I t...

Can we run a business rule on XML import?

I am migrating knowledge articles (KA) from one SN instance to another and KA numbers have conflicts. I want to to XML import to retain attachments. Not sure if I can use transform maps as XML has data for multiple backend tables (attachments) and ma...

Bharat23 by Kilo Guru
  • 4613 Views
  • 4 replies
  • 1 helpfuls

Set dictionary attributes via script.

Is there a way to set dictionary attributes by a script? What I want to do is set it so if the assigned to is blank, assignment group tree_picker is true. If there is a name in the assigned to I would like tree picker to be false.Reason: I have a bus...

mduluk by Giga Expert
  • 3995 Views
  • 3 replies
  • 0 helpfuls

Security restricted Error in Script

We are trying to get private key from a .pkcs file by following script.   _getPrivateKey: function(){var BufferedInputStream = Packages.java.io.BufferedInputStream; var KeyFactory = Packages.java.security.KeyFactory; gs.log("after key factory callin...

Gel function

Hi All1)When I use code like this what does it essentially mean?2)What are these "sys_display" , "sys_uniqueVaule" ? are there any more of them? can I get a link of there description?   gel('sys_display.ecc_agent').value = Name;     sysId = gel('sys_...

dipesh1 by Kilo Contributor
  • 6172 Views
  • 2 replies
  • 0 helpfuls