|
Thanks Mark, I tried the below but still get the DateTime field outcome of: 2018-06-20 00:00:00 in each field.
Any idea what I am doing wrong? Thanks, Scott BEFORE RECORD ENTERED EVENT if (values["Status"] == "INT Request Complete")
{ DateTime dtCompletedDate = DateTime.Parse(values["Completed Date"]);
DateTime dtCompletedTime = DateTime.Parse(values["Completed Time"]); string email = "scott.wiersman@ropesgray.com";
string from = "release.management@ropesgray.com";
string msg = "DETAILS:" + Environment.NewLine
- "" + Environment.NewLine
+ "Completed Date: " + dtCompletedDate.Date.ToString() + Environment.NewLine
- "" + Environment.NewLine**
- "Completed Time: " + dtCompletedTime.ToString("hh.mm tt") + Environment.NewLine**
- "Please use following link to review complete details in the Archive Console: " + Environment.NewLine
- "http://onlinedeployment/RequestArchive/dbo_DEPLOYMENT_CONSOLE_ARCHIVE/list";
string subject = "A Deployment Request to INTEGRATION has been COMPLETED - " + values["Request Title"].ToString();
XVar attachments = XVar.Array();
// Attachments description. The 'path' is required. Others parameters are optional.
// attachments = new XVar(
// 0, new XVar("path", MVCFunctions.getabspath("files/1.jpg")),
// 1, new XVar("path", MVCFunctions.getabspath("files/2.jpg"), "name", "image.jpg")) ; XVar result;
result = MVCFunctions.runner_mail(new XVar("to", email, "subject", subject, "body", msg, "from", from, "attachments", attachments));
// You can manually overwrite SMTP settings
// result = MVCFunctions.runner_mail(new XVar("to", email, "subject", subject, "body", msg, "from", from, "attachments", attachments,
// "host", "somehost", "port", 25, "username", "smtpUserName", "password", "password"));
if(!result["mailed"])
{
MVCFunctions.EchoToOutput(result["message"]);
}
}
|