04-04-2013 12:58 PM
Hello---For the record, not a progammer, but an ACC.
I am working to create a new history with this fragment of code.
NewHistory = ActFwk.Histories.CreateHistory(currentContact, Guid.Empty, hisType, False, System.DateTime.Now, System.DateTime.Now, sRegarding, "")
The code works, and I just want to refine it slightly.
The result is:
Appeal Date - 4/23/2013 12:00:00 AM in the regarding field.
I'd rather just have
Appeal Date - 4/23/2013
I tried taking out the second system.dateTime.now command, but ACT didn't like that.
Running ACT! 2012, and I know it's VB.net being used.
04-04-2013 01:03 PM
04-05-2013 06:58 AM
04-05-2013 07:19 AM - edited 04-05-2013 07:20 AM
What is sRegarding? The next to last parameter for that method is the regarding string and that's what you'd want to modify to have regarding appear as you'd like.
The second DateTime you tried to remove is the end time for the history, that's why Act didn't like it.
04-09-2013 07:41 AM