I've got a custom form which sends a message to an addressee and on the Send event automatically creates a task based on the content of the message. Is it possible to attach the entire sent message to the task at the same time the task is created?
Here's the vbscript I'm using to create the task:
Set objOutlook = CreateObject("Outlook.application")
Set itmTask = objOutlook.CreateItem(olTaskItem)
.Subject = item.Subject
.Categories = "Contract Request"
.DueDate = NextBusinessDay(now(),7)
.ReminderTime = NextBusinessDay(now(), 5)
.ReminderSet = True
.Body = "Automatically created task based on " & item.Subject & vbCr & vbCr & item.body
Set itmTask = Nothing
Set objOutlook = Nothing