How to delete mails from Outlook Groups

I’m encountering an issue while attempting to delete emails from Outlook groups. When I try selecting emails within a specific folder using the “For Each Email” activity, I receive an error message stating, “Delete Outlook Mail Message: The operation failed. The messaging interfaces have returned an unknown error. If the problem persists, restart Outlook.” Alternatively, when I specify the folder name, I encounter an error indicating that the folder does not exist. How can I resolve this problem?

@laxmikant.bhale

Canyou shoe the properties please

Cheers

@laxmikant.bhale

In the scope what did toy give as account?

Also selectedfolder will be pointing to the folder which is currently selected in outlook and not the folder you need

Tryoutlook.Folder("FolderName")

Also when you do this in scope shared mail should be selected

Cheers

1 Like

Thank you for your guidance! I specified my Outlook account in the scope. I also tried using Tryoutlook.Folder("FolderName") to explicitly set the folder, but unfortunately, I’m still encountering an error stating, “the folder does not exist.” Any suggestions on resolving this issue would be greatly appreciated. Cheers!

I discovered that, in newer versions of Outlook, there is a limitation that prevents the deletion of emails directly from groups.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.