无法在联系人交换中创建注释

Can't create Notes in Contacts exchange

我正在尝试创建一个联系人,其中包含备注,但联系人已创建,但我无法恢复联系人中的备注。

的字典键是:"PersonalNotes"。 在使用下面的 soap 消息时,我收到用户的 API HttpError 500 错误。 当我更改下面的 soap 消息("Hello")时,我的联系人已创建,但我看不到联系人的备注部分。更改 RequestServerVersion 后,我也尝试过。 我也尝试过更改肥皂消息中的位置。

<soap:Envelope
                    <t:Notes>
                        <t:Entry Key="Notes">**With Notes**</t:Entry>
                    </t:Notes>
                </t:Contact>
    </soap:Body>
</soap:Envelope>

这是我用来创建联系人笔记的肥皂消息。

response = self.client.post_retry(url='https://outlook.office365.com/EWS/Exchange.asmx', data=RestoreContact_SOAP, anchormailbox=True, content_type = 'xml')

请帮忙。

注释只是 Item 的正文,因此要创建它们,请使用正文 属性,例如,这应该有效

  <soap:Body>
    <CreateItem
        xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <SavedItemFolderId>
            <t:FolderId Id="AQMkADczNDE4YWEAMC03ZWZiLTQyM2QtODA1Yi02MmIyNmJkYWMyNmQALgAAA74c3T2WBidIkPPeS33fvkkBAHUQR/0Y6jBNnUCxQousINAAAAIBDgAAAA=="/>
        </SavedItemFolderId>
        <Items
            xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
            <t:Contact
                xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
                <FileAs>With Notes</FileAs>
                <DisplayName>With Notes</DisplayName>
                <GivenName>With Notes</GivenName>
                <Initials></Initials>
                <MiddleName></MiddleName>
                <Nickname></Nickname>
                <CompanyName></CompanyName>
                <t:PhysicalAddresses>
                    <t:Entry Key="Business">
                        <t:Street></t:Street>
                        <t:City></t:City>
                        <t:State></t:State>
                        <t:CountryOrRegion></t:CountryOrRegion>
                        <t:PostalCode></t:PostalCode>
                    </t:Entry>
                    <t:Entry Key="Home">
                        <t:Street></t:Street>
                        <t:City></t:City>
                        <t:State></t:State>
                        <t:CountryOrRegion></t:CountryOrRegion>
                        <t:PostalCode></t:PostalCode>
                    </t:Entry>
                </t:PhysicalAddresses>
                <AssistantName></AssistantName>
                <BusinessHomePage></BusinessHomePage>
                <Department></Department>
                <Generation></Generation>
                <JobTitle></JobTitle>
                <Manager></Manager>
                <OfficeLocation></OfficeLocation>
                <Profession></Profession>
                <Surname></Surname>
             <t:Body BodyType="Text">This is the Notes.</t:Body>
            </t:Contact>
        </Items>
    </CreateItem>
</soap:Body>