D
Dave Hogg
I am trying to create a task from a custom form. My code fails on the save
method, generating the following error message.
An unhandled exception of type 'System.Runtime.InteropServices.COMException'
occurred in microsoft.visualbasic.dll
Additional information: The operation failed.
My code is as follows.
datDueDate = Now
datDueDate = datDueDate.AddDays(7)
glbOutlookNewItem = glbOutlookDir.items.add("IPM.Task.<CS Request>")
glbOutlookNewItem.Subject = "Quote Acceptance Test"
glbOutlookNewItem.DueDate = datDueDate
glbOutlookUP = glbOutlookNewItem.UserProperties
glbOutlookUP("Start Date") = datDueDate
glbOutlookUP("Due Date") = datDueDate
glbOutlookNewItem.save()
I have tested that I can create and save a task in the folder manually.
Any suggestions would be great. Thanks
method, generating the following error message.
An unhandled exception of type 'System.Runtime.InteropServices.COMException'
occurred in microsoft.visualbasic.dll
Additional information: The operation failed.
My code is as follows.
datDueDate = Now
datDueDate = datDueDate.AddDays(7)
glbOutlookNewItem = glbOutlookDir.items.add("IPM.Task.<CS Request>")
glbOutlookNewItem.Subject = "Quote Acceptance Test"
glbOutlookNewItem.DueDate = datDueDate
glbOutlookUP = glbOutlookNewItem.UserProperties
glbOutlookUP("Start Date") = datDueDate
glbOutlookUP("Due Date") = datDueDate
glbOutlookNewItem.save()
I have tested that I can create and save a task in the folder manually.
Any suggestions would be great. Thanks