workflow initiated datetime in start event context
The datetime for a when a workflow is initiated is not available in the workflow designer.
Consider if I have a form which has a date control for date and time called 'formdate'.
In the workflow designer when I insert a variable I have the 'formdate' in the 'start event'. That has a default value of datenow().
'Context' give current date/time and as well as workflow instance ID, etc.
'Start event context' supplies workflow initiator (if authenticated form).
As actions can be delayed (ie use of current datetime) it would be great to have the datetime for when the workflow was initiated as a start event context. This would be the most accurate approximation of the submit time of the form.
Thanks for that.
Just to clarify – what would be the main use of this date capture?
Gavin Adams commented
to capture the actual submit time of the form
(rather than when the form was opened or when the action ran to submit the entry into the SQL db or SPO list)
Or in the case of a component workflow when the workflow was called to start.
If someone opens the form they may spend several minutes on the form before it is submitted.
expanded a little more in the forum post.
In my use case it was an attendance form. we wanted to capture into the db the datetime the student submitted their attendance rather than the time they opened the form or when the action ran to submit into the DB.