In the scripting reference there is an item descriptor created date...
descriptor.createdDate (JavaScript date)
Date and time the item was created (Created on in Owner and Change Summary)
Is the "creationDate" arrived at when the item is "saved" at creation? Or, does it record when the '+' button was clicked?
If when "saved", then is there a way to record the '+' click/event?
If when + is clicked, how can I access that information via a script?
Thanks,
Hi Bill,
To answer your question the item.createdDate, is based on when the item is saved after all possible behavior and workflow scripts are completed for the item created. Until that point in time the Item technically is not a saved committed to the database and is lacking that information.
At this point in time there is no way to capture that information as it is a not registered to the database as a committed action by user.
Thanks Joe!
Thought that would be the answer, but had to check.
Therefore, if I want a date I will need to create one using java scripting. That's my take anyway.
Thanks.
Bill,
Unfortunately, even by scripting, I cannot think of a feasible way to capture the actions of starting the creation of the item. You can capture the time of starting the script but that would be the same as looking at date/time of item creation that is already logged.
However if you do figure it out, please share with us so we can all learn.
How to update the item created date on some action?
i tried with bellow way:
item.descriptor.createdDate = item.workflowActions[0].timeStamp;
Didnt update the created date.
`item.descriptor.createdDate` would be a read-only field. So there wouldn't be anyway you could change that date.
Additionally, in my limited experience, without being overly clever (never a good idea) using the JS Date object can be assigned to a date field but not a date time like Created On can handle. So you either get a string with the date in Eastern Standard time or just a date with the time hidden.
Can't find what you're looking for? Ask the community or share your knowledge.