EWSv2 mark item as junk issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

EWSv2 mark item as junk issue

L0 Member

Hi Guys

 

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?

 

KR,

Simon

1 REPLY 1

L0 Member

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)  

  • 1859 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!