私はMicrosoftDynamicsCRM4.0のSOAPAPIを使用しており、ほとんどすべてが機能していますが、データベース内の連絡先の総数(または特定のクエリ)をカウントしようとすると、TotalRecordCountが尊重されません。 =trueフラグ。
これが私が使用しているSOAPリクエストです:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<CrmAuthenticationToken xmlns="http://schemas.microsoft.com/crm/2007/WebServices">
...
</CrmAuthenticationToken>
</soap:Header>
<soap:Body>
<RetrieveMultiple xmlns="http://schemas.microsoft.com/crm/2007/WebServices">
<query xmlns:q1="http://schemas.microsoft.com/crm/2006/Query" xsi:type="q1:QueryExpression">
<q1:EntityName>contact</q1:EntityName>
<q1:Distinct>true</q1:Distinct>
<q1:PageInfo>
<q1:ReturnTotalRecordCount>true</q1:ReturnTotalRecordCount>
<q1:PageNumber>1</q1:PageNumber>
<q1:Count>1</q1:Count>
</q1:PageInfo>
</query>
</RetrieveMultiple>
</soap:Body>
</soap:Envelope>
しかし、私が返している応答には、まだ次のものが含まれています。
TotalRecordCount="-1" TotalRecordCountLimitExceeded="0"
私が間違っている/ここで欠けていることについて何か考えはありますか?