We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

Forum Posts

Download attachment by passing file_name instead of sys_id

We are able to download an attachment using the sys id by using the below URL in the web browser or postman. https://servicenow-instance.ourdomain.com/sys_attachment.do?sys_id=21e63dce1fbec118fb5252c7b04cbcd4 Can we download an attachment by querying...

Ovin Detree by Kilo Explorer
  • 2067 Views
  • 15 replies
  • 0 helpfuls

Onload Client Script

function onLoad() {   var sections = g_form.getSections();if (category== 'SERVER') {sections[1].style.display = 'block';                       sections[2].style.display = 'block';} else {sections[3].style.display = 'none';                       secti...

vipultiwar01 by Kilo Contributor
  • 16476 Views
  • 5 replies
  • 1 helpfuls

UI Policy - get the reference field value (not working)

Hi All, I need help to get the reference field "model category" value on to alm_hardware table. I created a UI policy script but it is working partially because it's hiding the tabs(form section) based on role and not on type of records.I would like ...

MR1 by Tera Contributor
  • 1678 Views
  • 6 replies
  • 1 helpfuls

Resolved! Removing duplicate objects from a JSON aray

Hi, I have the following JSON Array, which consists of objects and I want to remove the duplicate objects from the array. I have tried a couple of code snippets from the internet but most weren't compatible in our SN instance. I have the following JS...

Neha Pendem by ServiceNow Employee
  • 11856 Views
  • 8 replies
  • 7 helpfuls

Resolved! Add banner image to service portal page

Hello, I am trying to add a unique banner image to my 'Submit time off' portal page. I added the Welcome Banner widget but when I preview the page no image shows (See Pic Below). How can I add my custom banner image to the page?  

find_real_file.png find_real_file.png
JJG by Kilo Guru
  • 6286 Views
  • 4 replies
  • 2 helpfuls

Inbound Email User Matching other than From Email

While processing Inbound Actions, it is default behavior that ServiceNow parses the From email to identify the sender and then impersonates the sender to process the record created or updated (see Identifying the Sender and Email user matching). One ...

Tami Martin by Tera Contributor
  • 2037 Views
  • 3 replies
  • 0 helpfuls

List of Virtual Agent methods?

Is there a comprehensive list of all Virtual Agent methods?  Our team has seen the very limited documentation on this here, however is there a complete list somewhere with explanations?  For example, we've seen this in an ootb topic: var greetingMess...

yundlu316 by Kilo Guru
  • 4965 Views
  • 4 replies
  • 5 helpfuls

Form input field issues using ng-model and ng-init

Hi, I created a modal form on one of my Catalog Item forms.  The user would click a button on the catalog item form to open up the modal form.  I am passing the value from a field on the Catalog item to the modal form.  In which I would take that val...

find_real_file.png find_real_file.png find_real_file.png
Dazler by Mega Sage
  • 3240 Views
  • 2 replies
  • 0 helpfuls

Option to select multiple choices on portal

Hello Gurus, I have requirement to have user ability to select multiple options on portal. I know I can use list collector, but client is incline towards using "Multiple choice" type because all options visible clearly. This is how its appearing as L...

find_real_file.png find_real_file.png
VShine by Mega Guru
  • 2970 Views
  • 10 replies
  • 2 helpfuls