Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

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

Forum Posts

Populate variables from sys user table based on 'Requested for'

Hi all, Iam working on a catalog item. The requirement is to autopopulate 6 fields (Fname, Lname, Title, Department, Email,Phone,) based on Requested For field. In the catalog item variables, I have set the default value for all the 6 variables like ...

Community Alums by Community Alums  
  • 2138 Views
  • 11 replies
  • 2 helpfuls

Resolved! Script include not setting catalogue variable

Hi, Trying to set a variable on a catalogue item automatically via a script include which is triggered then the value of another variable is set, onChange. The variable isn't being set but i'm not seeing anything in the logs either. Anyone got any id...

Resolved! JSON Structure for UI Builder chrome_linkset property?

Hello! I'm working on a portal in UI builder and want to use the linkset groups in the footer. I've found out at a minimum I need a "chrome_linkset" property which should have some JSON in it. From various searches through all the UI Builder resource...

find_real_file.png

How to make fields mandatory in service portal widget ??

Hello SN Team,   I have requirement when "substate != non" then "location" field should be mandatory or it should show some error message on location field "Location is Required ".   Please help me on this   @Mohith Devatte  @Ankur Bawiskar 

vinod9 by Tera Expert
  • 1595 Views
  • 4 replies
  • 0 helpfuls

Resolved! How to push all the sysid's in one array within Glide record.

Below is my Glide record code, could you please tell me how can i create one array object and add all the sys id's of the records that is coming after adding quesry to that array object.   sendSbDataToApttus: function() {        try {    var sbRecord...

VIKAS MISHRA by Tera Contributor
  • 2430 Views
  • 2 replies
  • 1 helpfuls

Resolved! Calling an UI Page using GlideDialogWindow on an UI macro

Hello team!  I have a requirement on the incident module, they created a field where you can select a knowledge article to relate it to the incident, but they discovered that when trying to access the article with the button from the i icon it would ...

ijtm89 by Tera Contributor
  • 1621 Views
  • 3 replies
  • 0 helpfuls

How to whitelist an URL in servicenow?

I have this query to check in Script background whether the connection is returning anything.   var url = "https://install.service-now.com";var request = new sn_ws.RESTMessageV2();request.setEndpoint(url);request.setHttpMethod('get');request.setReque...

Somnath Dhar by ServiceNow Employee
  • 1611 Views
  • 2 replies
  • 0 helpfuls

Resolved! g_modal - Create a reference field

Hello,  I've created an UI Action for Agent Workspace which gives me some kind of result. function onClick( g_form ) { g_modal.showFields({ title: "Reference Field Test", fields: [{ type: 'reference', name: 'c...

Resolved! Source Script in Tansform mapping

I want to import beneficiary data to the employee document table so I have created a data source and transform map  I have written the Source script for the beneficiay feild (reference field)   answer = (function transformEntry(source) {         // A...

Priya14 by Tera Contributor
  • 3401 Views
  • 7 replies
  • 2 helpfuls

Resolved! dot walk on variable attribute of catalog item

As shown in attachment their is variable called user data which populates data from sys_user table I want to popukate name , department and department head in the variables as shown . How to dot walk reference field in varaible attribute ?? ref_auto_...

harry24 by Tera Contributor
  • 2022 Views
  • 4 replies
  • 2 helpfuls

Function to get my location

Hi, I'm setting up a query with a widget. The code below is not getting well, is there any correct code? javascript: gs.getUser().getLocation()  I want to get my location.   Regards,

find_real_file.png find_real_file.png
Mi1 by Tera Contributor
  • 1113 Views
  • 2 replies
  • 0 helpfuls