Hi guys,
I have an agent that gets some values from a document in a database, then based on the username from the document, gets their mail server and mail file name from the NAB, opens their mailbox, opens their out of office profile, and sets some fields (start and end date) based on values obtained earlier.
All this works fine, except it doesnt enable the out of office. The start and end date, subject etc all get changed and saved, but the profile doesn’t want to enable.
If there anyway to do this, without opening the out of office profile and click “Enable and Close”
Thanks
part of code…
Set userOOODoc.FirstDayOut = startDate
Set userOOODoc.FirstDayBack = endDate
userOOODoc.GeneralMessage = bodyText
userOOODoc.CurrentStatus = “1”
userOOODoc.CurrentStatusDisplay=“On”
userOOODoc.BookBusyTime=“1”
computeForm = userOOODoc.ComputeWithForm(True, True)
Call userOOODoc.Save(True, False)