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

Forum Posts

business rule triggered by an event

Hi,I'm facing a problem with business rules. I know that a common way to use BR is to trigger an event when some prerequisites are met. But I need to do the opposite way.I have an event named "email.failed" that is inserted in the sysevent table by a...

Sélection_482.png
r_gissarl_ by Mega Expert
  • 8239 Views
  • 3 replies
  • 11 helpfuls

Resolved! current.variables.variablename is returning undefined

Hi,I have created a catalog item where i'm using two variables "category" and "sub category" which are of reference type.Based on the value chosen in "category", the values in "sub category" are filtered.The following code is used in the subcategory'...

Kamal17 by Kilo Sage
  • 2825 Views
  • 7 replies
  • 1 helpfuls

Resolved! Why do ServiceNow time fields add an hour?

Why aren't ServiceNow time fields accurate?   They seem to attempt to keep in line with timezone settings, but add an hour.   For instance, let's say I create a time field, and it's set to 00:00:00 on the form with my current timezone setting of Amer...

bcronrath by Kilo Guru
  • 3377 Views
  • 6 replies
  • 1 helpfuls

Resolved! Approval Comment copy

I have been struggling with a Change Request workflow script.   The customer wants to see the Approval Comments on the main page of the the Change Request after the Approver has Approved or Rejected it.   I have searched through the community scripts...

find_real_file.png find_real_file.png

Adding UI action info message

Hello experts, How do I add an info message on a UI action button 'Submit'?   I want a message to show on top of the page which says "Your request has been submitted" once the 'Submit' button is clicked?

nealp_ by Tera Contributor
  • 17419 Views
  • 5 replies
  • 4 helpfuls

Resolved! Writing a Client Script for a Scoped Application

We have created a Desktop Services Table, which extends the Task table.We have also created a user defined field on our User table named "legal hold", which is a True/False check box.What we are trying to do is that when someone is entering informati...

jmiskey by Kilo Sage
  • 3142 Views
  • 3 replies
  • 1 helpfuls

Resolved! how to query v_user_session table within a certain time frame

Greetings!I want to know how to get total transactions time data(How long they stay in serviceNow) for my users on weekly basis. It seems to me that v_user_session table only contain data on certain time point, right?What is the best table to query i...

fzw by Kilo Contributor
  • 2727 Views
  • 2 replies
  • 2 helpfuls

Resolved! Global BR to avoid duplicate records on insert and update

Hi,In our instance we are facing issue with duplicate Incident/Change/Problem/sc_task number being created.We cannot make dictionary unique though we have the script with us to do it and then to remove those before setting number field as unique on t...

kbanerje by Mega Guru
  • 3357 Views
  • 3 replies
  • 0 helpfuls

Resolved! Service Portal passing Information to g_form

Hi ThereI'm creating a Widget, which I embed in a Catalog Item/Request Item. My Widget is dynamicly creating a form and when I Submit the Request Item, I would like to use the Information from that form as a variable in the Requested Item to use this...

Fabian10 by Tera Guru
  • 4231 Views
  • 1 replies
  • 0 helpfuls

Fetching data out of sys audit table

Hi,we want to fetch historic incident data from sys audit table. moving forward we have implemented metrics which is populated by a BR on incident table as per business requirements.but we still need to fetch /report on historic audit data when the m...

hakansuri by Kilo Expert
  • 2406 Views
  • 5 replies
  • 3 helpfuls

Resolved! Variables not showing up on dashboard - gauge

Howdy Folks,As an Admin I created a REPORT based upon the CATALOG TASK table (sc_task.) The CONDITIONS select one particular type of TASK, and the items to be listed are a mixture of fields found in the SC_TASK table (i.e. NUMBER) and those found as ...

Screen Shot 2016-08-23 at 11.01.16 AM.png Screen Shot 2016-08-23 at 11.01.07 AM.png
tobrien by Kilo Guru
  • 1648 Views
  • 4 replies
  • 1 helpfuls

catalog item download a file from catalog item

Hi,I need an user/customer to download file into their hard drive from a cat item form when the user click download link. I know the sys_id of the file saved in sys_attached table.Thank you!

dilini by Giga Expert
  • 4728 Views
  • 8 replies
  • 8 helpfuls