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

Transform map field map script

Hello Experts,I have written below field map scripting but it's not working can anyone please guide why it's not working.answer = (function transformEntry(source) { if(source.u_model=="Apple Macbook Pro 16'' MVVJ2HB/A") { var gr=new GlideRecord('c...

abhijeetpaw by Tera Contributor
  • 836 Views
  • 6 replies
  • 0 helpfuls

Approval Coordinator without any child activities

Hi folks,I don't have any child activities in approval coordinator, what will be the output of this activity?I've tested this, it's marking as approved by default why is it so?

Community Alums by Community Alums  
  • 1103 Views
  • 7 replies
  • 0 helpfuls

difference between setVisible() and setDisplay() on g_form?

Hi,i just read the information about these two methods, both methods cannot hide mandatory fields with no value and the only difference i found is,setDisplay()If the field is hidden, the space is used to display other items. that means below field li...

swamyk by Mega Expert
  • 51080 Views
  • 5 replies
  • 23 helpfuls

Import Set

Hello Experts,I want to import the stock rule into the stock rule table. In my excel model, the name is Apple Macbook Pro 16'' MVVJ2HB/Abut in the product model table, there are multiple product models with the same name, that is Apple Macbook Pro 16...

abhijeetpaw by Tera Contributor
  • 550 Views
  • 4 replies
  • 1 helpfuls

Sleep function in server side script?

In my server side script, I am triggering an action via an outbound ReST call. The asynchronous operation returns immediately, but provides a URL which I can poll for the operation's completion. I would like to keep the function atomic, so would like...

ishtein by Mega Contributor
  • 43713 Views
  • 17 replies
  • 15 helpfuls

Resolved! Any better way to code Catalog Variables with CSS?

I need to make a field in bold with green text on the Catalog Item, RITM, & Task.The field is a reference field, the script is an onLoad Client script.The client script has The below code works on catalog item form view but not on RITM or portal:(plu...

View Rules - Force the DEFAULT view? Not working

Has anyone ever used a View Rule to force users to see the 'Default view'? I checked in sys_ui_view and it seems the Default view does not have a name (it is empty). Therefore I do not know what to return from my view rule. I am returning an empty st...