<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic EWSv2 mark item as junk issue in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/ewsv2-mark-item-as-junk-issue/m-p/414497#M246</link>
    <description>&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did anyone of you manage to mark emails as junk using&amp;nbsp;!ews-mark-item-as-junk?&lt;/P&gt;&lt;P&gt;I can get the item from the mailbox using the id and even mark it read / unread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I try to mark it as junk I get following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what kind if ID the command is expecting in item-id?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 15:46:03 GMT</pubDate>
    <dc:creator>SimonNoser</dc:creator>
    <dc:date>2021-06-22T15:46:03Z</dc:date>
    <item>
      <title>EWSv2 mark item as junk issue</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/ewsv2-mark-item-as-junk-issue/m-p/414497#M246</link>
      <description>&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did anyone of you manage to mark emails as junk using&amp;nbsp;!ews-mark-item-as-junk?&lt;/P&gt;&lt;P&gt;I can get the item from the mailbox using the id and even mark it read / unread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I try to mark it as junk I get following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what kind if ID the command is expecting in item-id?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 15:46:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/ewsv2-mark-item-as-junk-issue/m-p/414497#M246</guid>
      <dc:creator>SimonNoser</dc:creator>
      <dc:date>2021-06-22T15:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: EWSv2 mark item as junk issue</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/ewsv2-mark-item-as-junk-issue/m-p/420776#M264</link>
      <description>&lt;P&gt;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 (&lt;A href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.exchange.webservices.data.exchangeservice.markasjunk?view=exchange-ews-api" target="_blank"&gt;https://docs.microsoft.com/en-us/dotnet/api/microsoft.exchange.webservices.data.exchangeservice.markasjunk?view=exchange-ews-api&lt;/A&gt;) . 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)&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 16:41:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/ewsv2-mark-item-as-junk-issue/m-p/420776#M264</guid>
      <dc:creator>vbharadwaj</dc:creator>
      <dc:date>2021-07-20T16:41:53Z</dc:date>
    </item>
  </channel>
</rss>

