- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2019 12:13 AM
In the Response Template, is it possible to insert the current users name or to invoke a script?
Typical example would be to insert some signature like "Best regards, <Name of User>"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2020 01:10 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2019 12:22 AM
Hello niclas6692
If You Want a Current user information in client side script then use Glide User Api's that is g_user.Which gave you all the information about currently logged in users on client side.
For getting currently logged in users name on client side use : g_form.getUSerName() Method
For getting currently logged in users name on Server side use : gs.getUserDisplayName() Method
Please Mark it helpful/correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2019 04:49 AM
On the Response Template you have a HTML field where you type in the text. As it is an HTML field I can not use Client Script code. Using <script> </script> parts will be removed from the source code of the HTML field.
They have the variable ${Date} to insert the current date. I'm wondering if there are other variables like ${User} to insert the currents user name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2019 07:28 AM
Hi niclas6692,
The templates we have use the following code for signing standard responses:
${assigned_to.first_name}
Our agents can then just apply the templates without typing anything.
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2019 07:46 AM
This page in Docs details the no-code way to achieve this: https://docs.servicenow.com/bundle/madrid-servicenow-platform/page/product/human-resources/task/crea...
Best regards,
Lena