Auto populate current user and date to template
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2016 02:08 AM
I have created a template as part of change management. I would like the template to automatically populate the following values:
- Name of the current user
- For the implementation start date add the current date/time
- For the implementation end date add the current date/time plus 1 hour
I seem to remember it was a small piece of java code to paste into the field but its been a very long time since I did this.
Many thanks
Gareth
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-06-2016 02:24 AM
Hi Gareth,
I tend to forget the syntax myself all the time, hence i keep these links handy. these will help you
User Object Cheat Sheet - ServiceNow Guru
http://wiki.servicenow.com/?title=GlideDateTime
-Anurag