none
How long are Ids and ChangeKeys RRS feed

  • Question

  • Do the Id and ChangeKey fields have a fixed length? The examples I've been looking at have always been 112 characters for the Id and 40 characters for the ChangeKey.
    Wednesday, July 7, 2010 3:46 PM

Answers

  • Hi Steve,

     

    Thank you for your patience.  I have confirmed that for the attributes Id and ChangeKey the maximum length is 512 bytes after base64 encoding.

     

    The  following documents will be updated in a future release:

     

    [MS-OXWSCORE]

    ·         t:ItemIdType complex type, specifically the specification of the Id and ChangeKey attributes.


    [MS-OXWSFOLD]

    ·         t:FolderIdType complex type, specifically the specification of the Id and ChangeKey attributes.


    [MS-OXWSCVTID]

    ·         t:AlternateIdType complex type, specifically the specification of the Id attribute

    ·         t:AlternatePublicFolderIdType complex type, specifically the specification of the Id attribute


    [MS-OXWSATT]

    ·         t:RequestAttachmentIdType complex type, specifically the specification of the Id attribute

    ·         t:AttachmentIdType complex type, specifically the specification of the RootItemId and RootItemChangeKey attributes

    ·         t:RootItemIdType complex type, specifically the specification of the RootItemId and RootItemChangeKey attributes


    [MS-OXWSCDATA]

    ·         t:DistinguishedFolderIdType complex type, specifically the specification of the ChangeKey attribute

     

    Regards,

    Mark Miller

    Escalation Engineer

    US-CSS DSC PROTOCOL TEAM

    Monday, July 19, 2010 6:00 PM

All replies

  • Hi Steve:

    Please provide more context about your question so that we can help you better.


    Regards, Obaid Farooqi
    Wednesday, July 7, 2010 9:06 PM
    Owner
  • I'm using Exchange Web Services to access my mailbox and functions such as GetFolder return Id and ChangeKey fields for folders and messages. I would like to know the maximum length of these fields as I need to store them. Here is a sample response from the server:

     

    <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>
    <t:ServerVersionInfo MajorVersion="8" MinorVersion="2" MajorBuildNumber="254" MinorBuildNumber="0" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"/>
    </soap:Header>
    <soap:Body>
    <m:GetFolderResponse xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
    <m:ResponseMessages>
    <m:GetFolderResponseMessage ResponseClass="Success">
    <m:ResponseCode>NoError</m:ResponseCode>
    <m:Folders>
    <t:ContactsFolder>
    <t:FolderId Id="AQAfAHN0ZXZlbi50aHJlc2hlckBheGlzZmlyc3QuY28udWsALgAAAxA/+4szutARvEEAwN8Snr4BABFu8pcwutARvD8AwN8Snr4AAAEHDPkAAAA=" ChangeKey="AwAAABQAAADH2eiyUskAQZ8oghWIC/UQAAEkSQ==" />
    </t:ContactsFolder>
    </m:Folders>
    </m:GetFolderResponseMessage>
    </m:ResponseMessages>
    </m:GetFolderResponse>
    </soap:Body>
    </soap:Envelope>

    Wednesday, July 7, 2010 9:23 PM
  • Hi Steve:

    Thanks for clarification. I have alerted the Protocol Documentation Team about your question. A member of the team will be in touch soon.


    Regards, Obaid Farooqi
    Wednesday, July 7, 2010 10:29 PM
    Owner
  • Hi Steve,

    I will investigate this and get an answer to your question asap.

    Regards,

    Mark Miller

    Escalation Engineer

    US-CSS DSC PROTOCOL TEAM

     

    Thursday, July 8, 2010 1:37 PM
  • Hi Mark,

    Sorry to nag so soon but, any news yet?

    Tuesday, July 13, 2010 11:23 AM
  • Hi Steve,

    I'm still investigating the answer and it should be forthcoming soon.

    Regards,

    Mark Miller

    Escalation Engineer

    US-CSS DSC PROTOCOL TEAM

    Tuesday, July 13, 2010 12:28 PM
  • Thanks Mike. I've tried looking through the exchange protocol documents myself but I can't find any ID that matches the ID's I'm seeing returned by exchange web services.
    Tuesday, July 13, 2010 12:33 PM
  • Hi Steve,

     

    Thank you for your patience.  I have confirmed that for the attributes Id and ChangeKey the maximum length is 512 bytes after base64 encoding.

     

    The  following documents will be updated in a future release:

     

    [MS-OXWSCORE]

    ·         t:ItemIdType complex type, specifically the specification of the Id and ChangeKey attributes.


    [MS-OXWSFOLD]

    ·         t:FolderIdType complex type, specifically the specification of the Id and ChangeKey attributes.


    [MS-OXWSCVTID]

    ·         t:AlternateIdType complex type, specifically the specification of the Id attribute

    ·         t:AlternatePublicFolderIdType complex type, specifically the specification of the Id attribute


    [MS-OXWSATT]

    ·         t:RequestAttachmentIdType complex type, specifically the specification of the Id attribute

    ·         t:AttachmentIdType complex type, specifically the specification of the RootItemId and RootItemChangeKey attributes

    ·         t:RootItemIdType complex type, specifically the specification of the RootItemId and RootItemChangeKey attributes


    [MS-OXWSCDATA]

    ·         t:DistinguishedFolderIdType complex type, specifically the specification of the ChangeKey attribute

     

    Regards,

    Mark Miller

    Escalation Engineer

    US-CSS DSC PROTOCOL TEAM

    Monday, July 19, 2010 6:00 PM
  • Thanks for the info Mark.
    Thursday, July 22, 2010 7:57 AM