Did anyone of you manage to mark emails as junk using !ews-mark-item-as-junk?
I can get the item from the mailbox using the id and even mark it read / unread.
But if I try to mark it as junk I get following error:
Failed mark-item-as-junk with error: The specified object was not found in the store., The store ID provided isn't an ID of an item.
Does anyone know what kind if ID the command is expecting in item-id?
Yes, EWSv2 expects the usual item-id to mark the item/email as junk. If this has been removed/deleted from the inbox already it's likely you will see that error (https://docs.microsoft.com/en-us/dotnet/api/microsoft.exchange.webservices.data.exchangeservice.mark...) . Can you validate if the email still exists in the mailbox ? I would also double check the instance you run this command from in case you have multiple instances of EWSv2 setup in XSOAR. (As best practice you can specify the instance with the "using" argument to make sure it runs the command on the right mailbox)
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!