I need some help please. I need to know how to handle Outlook from M-Files handler '' for my users, clearly i need to generate a task in outlook.
I try it out from M-Files, direct from Windows in many maners, and it works fine. But not from M-Files directly, for example i dont get the namespace.
Can someone help me please? Here, The code that i have been used:
Const olTaskItem = 3
wstartDate = Now + 1
wdueDate = Now + 30
Set OutlookApp = CreateObject("Outlook.Application")
Set oItems = OutlookApp.CreateItem(olTaskItem)
With oItems
.Subject = "Ma troisième tache"
.StartDate = wstartDate
.DueDate = wdueDate
.Body = "Mon message Mon message Mon message Mon message"
.Categories = "M-Files"
.Save
End With
Set oItems = Nothing
Set OutlookApp = Nothing