Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

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

Forum Posts

Template literals in ServiceNow

Hey all, I'm trying to figure out how to programmatically use what in JavaScript are referred to as "template literals."   In other words, if I have a string variable called source that contains the text, "The next change is ${change.number}," and I ...

Dennis R by Tera Guru
  • 8773 Views
  • 6 replies
  • 8 helpfuls

Condition based on system property

Hi, I found problem with condition in UI Actions. I need to show form button only when Task is assigned to group which is one of the groups defined in system property. Is there any way how to make script codition of UI Actions or I'll have to make it...

Patrik by Mega Contributor
  • 2829 Views
  • 2 replies
  • 0 helpfuls

Service Portal is not working (not loading properly, especially customized widgets) in mobile either through browser or through service now classic application.

Hello Everyone, we are currently in London version, we are developing service portal in our instance. We observed that service portal pages are not loading properly ,specifically if there are any customized widgets on page in mobile.  we have tried i...

swathi52 by Tera Expert
  • 3707 Views
  • 6 replies
  • 0 helpfuls

Resolved! How to add line break in mailto script for the reply body

I have a mail script that sends an email with buttons for custom approve or reject on the incident task table. They are not approvals just acknowledgements. I am adding the watermark to the reply body, but I also need to add some default content and ...

find_real_file.png
Tricia3 by Kilo Contributor
  • 9365 Views
  • 4 replies
  • 3 helpfuls

Resolved! isMemberOf function in client script

I'm trying to get certain options in the State field to hide if the current user is not a member of a group. The script I have so far is as follows:function onLoad() {   var usr = g_user.getUserID();   var gate = g_form.getValue('u_field');   if (gat...

Resolved! Email notifications are triggering twice.

Hello, I had a requirement to send SLA breach notification for incident. I am achieving it via notification. I have created one notification with condition is sla breached changes to true but i can see in logs same email is sent twice at a time. Can ...

Approval email notification not getting triggered

Hi guys, I am facing an issue with the email notification. The email notification for the approval table is not being triggered. The notification should be triggered for the manager of the current user.  These notifications are created as part of cat...

find_real_file.png find_real_file.png find_real_file.png find_real_file.png
Hari1 by Mega Sage
  • 3749 Views
  • 4 replies
  • 0 helpfuls

State Flow()

Hi All, I am new to scripting, the below mentioned script has been written in one of my requirement(work order task gets created from work order). what is the exact functionality of below new StateFlow().processFlow(current, '3530e4b8d7102100bbc783e8...

aahitha2 by Mega Expert
  • 4182 Views
  • 3 replies
  • 2 helpfuls