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

Forum Posts

how to create request item from script

I'm trying to build a background script that will create a new request item. Since there are related tables involved, what would be the correct creation sequence, e.g. which table record should be created first to be associated with the request item ...

Incomplete json response from PostMan as client

I am making a call to below api from postman. Strangely , in the json response the attribute "ui_policy" is empty. However, when I do the same thing from SN's REST API Explorer, I do get the ui_policy for the catalog item. Does it mean that any exter...

Dorothy by Tera Contributor
  • 712 Views
  • 4 replies
  • 0 helpfuls

Survey link in Advance layout

hI , i have a requirement to add survery in a layout :I have written the following code :var surveyUrl = '';        surveyUrl = gs.getProperty('glide.servlet.uri') + 'home/feedback_survey.do?sysparm_feedback=' + '${u_assessment_instance.sys_id}';<p><...

calculate difference between date

hello community,i want to calculate the difference between start date and end date and populate the result on duration field.i have create two scripts:script include:var lmsAjax = Class.create();lmsAjax.prototype = Object.extendsObject(global.Abstrac...

Resolved! Activity Feed not updating with comments or worknotes

I'm banging my head on the wall on this one. I have 2 tables, both inherit from the same table and both have the same exact ACLs. On one table, I can write/read to the activity log with no problem (i do this via the form, using the 'post' button that...

akaupisch by Kilo Guru
  • 3439 Views
  • 4 replies
  • 4 helpfuls

Odd behaviour of DecisionTable APIs

Hello everyone,   I'm a big fan of the decision management capabilities of ServiceNow, and we are using the Decision Table extensively. However, after implementing tens of decision table logic, we are struggling with the getDecisions API. I have a fe...

VivekVerma_0-1706906844762.png VivekVerma_1-1706906878376.png

Resolved! Add Email addresses from report to Scheduled Report

hello,I have a report which has a an email field.I need to pull unique email ids from this report and put on to the TO field of the scheduled email of the report.I have this script written in the condition part of the Scheduled job. When executed, th...

Shree Nag by Tera Expert
  • 1121 Views
  • 1 replies
  • 1 helpfuls