hi, I am trying to send mail body with below infobut time stamp not captured. I did create assign activity for current date and time like DateTime.Now for start and end time.pls check below…
“The BOT " + process_Name + " execution has been successfully completed.
Execution Start Time: " + startTime.ToString() + "
Execution End Time: " + end_time.ToString() + "
Total Execution Time: " + total_execution_time.ToString() + " seconds.”
But it was written like below when mail received in inbox…
the BOT execution has been successfully completed.
Execution Start Time: 01/01/0001 00:00:00
Execution End Time: 01/01/0001 00:00:00
Total Execution Time: 00:00:00 seconds.
Can you pls help how to get timestamps for start and end , process name in email body replacing with variables.
and for subject line with processname
Did you by any chance Assign all those variables in another workflow? Since all those variables seems to have ‘null’ value therefore it shows nothing in your automated message.
If yes, you need to make sure that you pass the right argument with the right value to this workflow, and make sure to run/debug from the workflow that assigns those variables.
I’ve created a mockup for your case. Please check if the concept of passing the arguments is the same in your project. In my mockup please debug the file from the AssignVariables.xaml.