- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2016 07:39 AM
I was wondering if there was a good way to test the creation of date-sensitive items, like time cards or changes, by changing the actual system date of the testing environment. Has anyone heard of any ways of doing that? Or is it possible to do a record insert and override the sys_created_on date manually?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2016 07:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2016 07:46 AM
You can update the date by writing after insert business rule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2016 07:51 AM
Well, the problem is that there are business rules that occur on insert which utilize the sys_created_on date so it's sort of a chicken or the egg situation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2016 07:54 AM
In that case business rule order will play trick.
Have the least order for your business rule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2016 08:40 AM
That's not actually a bad idea, thanks. I'll go try it.