Auto populate current user and date to template

garethe
Kilo Explorer

I have created a template as part of change management. I would like the template to automatically populate the following values:

  1. Name of the current user
  2. For the implementation start date add the current date/time
  3. 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

Anurag Tripathi
Mega Patron
Mega Patron

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