EWS call to GetItem returns invalid item count - Microsoft Community


hello,

we using ews read email mailbox , receiving responses contain items, count equals -1

for example:

<?xml version="1.0" encoding="utf-8"?>
<s:envelope
    xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:header>
        <h:serverversioninfo majorversion="15" minorversion="1" majorbuildnumber="888" minorbuildnumber="25" version="v2017_01_07"
            xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"
            xmlns:xsd="http://www.w3.org/2001/xmlschema"
            xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"/>
        </s:header>
        <s:body>
            <m:finditemresponse
                xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
                xmlns:xsd="http://www.w3.org/2001/xmlschema"
                xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"
                xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
                <m:responsemessages>
                    <m:finditemresponsemessage responseclass="success">
                        <m:responsecode>noerror</m:responsecode>
                        <m:rootfolder indexedpagingoffset="500" totalitemsinview="-1" includeslastiteminrange="false">
                            <t:items>
                                <t:message>

                                ...........

                                </t:message>
                            </t:items>
                        </m:rootfolder>
                    </m:finditemresponsemessage>
                </m:responsemessages>
            </m:finditemresponse>
        </s:body>
    </s:envelope>

as can see in above  totalitemsinview=-1 -- what cause this?

hi marat,  

for advanced assistance regarding concern, suggest post query in word pro discussions of msdn forums. 

thanks.



Office / Outlook / Microsoft Office Programming / Office 365 Home



Comments

Popular posts from this blog

message deleted by transport agent, event: LED=550 4.3.2 - Microsoft Community

Outlook conversion problem - Microsoft Community

Outlook 2016 - Insert attachment to Meeting Invite You Do Not Own - Microsoft Community