Hi,
How can I retrieve the start time and date of my rootWorkflow?
Thanks!
In the script body you can reference the context built-in reference to the token for the overall workflow
I tested this just now
Created a simple child workflow with this script content
Then created a wrapper workflow to call TWO consecutive invocations of the child workflow
Running that workflow gives the following log content
You can see that both invocations of the child workflow are referring to the same WorkflowToken so the value of workflow.startDate for any child should always be the startDate for the overall root workflow
-HTH
In the script body you can reference the context built-in reference to the token for the overall workflow
I tested this just now
Created a simple child workflow with this script content
Then created a wrapper workflow to call TWO consecutive invocations of the child workflow
Running that workflow gives the following log content
You can see that both invocations of the child workflow are referring to the same WorkflowToken so the value of workflow.startDate for any child should always be the startDate for the overall root workflow
-HTH