Hi All,
We are having trouble saving the attachment of any email within office 365 and office 2021 using VB script. This only applies to attachments which are also an email (msg). When we try to save the attachment, we get the error message, "You don't have appropriate permission to perform this operation". I have also provided the script we used for saving the attachment email.
oMail.FlagStatus = Outlook.OlFlagStatus.olFlagComplete
sName = oMail.Subject
DoNotify("sname inbox" + sName)
'Dim attac1 As String = Convert.ToString(oMail.Attachments.Count)
' oMail.Save()
oMail.SaveAs(copyfolder + "\" + dynamicFilename + ".msg", Outlook.OlSaveAsType.olMSG)
DoNotify("after saveas inbox")
We really hope to get some solution from anyone here.
Regards
Suresh
We are having trouble saving the attachment of any email within office 365 and office 2021 using VB script. This only applies to attachments which are also an email (msg). When we try to save the attachment, we get the error message, "You don't have appropriate permission to perform this operation". I have also provided the script we used for saving the attachment email.
oMail.FlagStatus = Outlook.OlFlagStatus.olFlagComplete
sName = oMail.Subject
DoNotify("sname inbox" + sName)
'Dim attac1 As String = Convert.ToString(oMail.Attachments.Count)
' oMail.Save()
oMail.SaveAs(copyfolder + "\" + dynamicFilename + ".msg", Outlook.OlSaveAsType.olMSG)
DoNotify("after saveas inbox")
We really hope to get some solution from anyone here.
Regards
Suresh