
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2018 08:04 AM
Good Morning All,
I am running a business rule on my incident table which requires me to update a time field on a different table. I have tried several iterations of the code but nothing seems to work.
The line of code I am using is
data.setValue('u_timefield', gs.now());
I have also tried SetDisplayValue as well as trying
data.u_timefield = gs.nowDateTime();
but still nothing. Any idea how I can accomplish this?
Solved! Go to Solution.
- Labels:
-
Best Practices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2018 08:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2018 08:08 AM
How about just
current.fieldName=new GlideDateTime();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2018 08:57 AM
You are the MAN! Thank you sir!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2018 08:12 AM
Hi,
Go to Buisness rule, select the "Action" tab, set field value of TimeField to javascript:gs.nowDateTime().
Remove your line of code. Mark the answer correct and helpful, if it answers your question.
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-23-2018 08:12 AM
Thanks for the reply, unfortunately it's not the current incident form that needs the update it's a different table.