how to set current date time in scoped application
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2017 08:44 AM
Hi,
I need to set the current time stamp into a date/time field in a scoped application,what is the best way to do it? I though it would be simply to set it as the same as Updated system field, but it seems not working, did I miss some thing?
Thanks for help!
Jerry
Labels:
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2017 09:56 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2018 01:00 PM
Jerry,
You can set the current date-time in a scoped as using the following:
var dateTimeNow = new GlideDateTime().getDisplayValue();
current.[yourfieldname] = dateTimeNow;
Hope this helps!
Anna