Message

Return to types list

Type Properties

Properties
PropertyValue
id72dc49e1-1486-4634-b651-ef560ed051e5
nameMessage
uncreatablefalse
immutablefalse
singletonfalse
transformsmtt, stt, form
allow-readonlytrue

Type Details

message  The Message type is used to store a multipart message, including message text and attachments.
NameTypeIsRequiredDescription
whend:date-timeYesThe date and time of the message.
headersthis:message-header-itemNoA collection of header information associated with this message.
sizepositiveIntegerYesThe size of the message in bytes.
summarystringNoA summary of the message. The summary contains the first 512 characters of the message in text format.
html-blob-namet:stringnznwNoThe name of the blob that stores the message in HTML format.
text-blob-namet:stringnznwNoThe name of the blob that stores the message in text format.
attachmentsthis:message-attachmentNoAttachments to the message.
message-header-item  An item of header information.
NameTypeIsRequiredDescription
namet:stringnznwYesThe name of the header item.
valuet:stringnznwYesThe value of the header item.
message-attachment  An attachment to the message.
NameTypeIsRequiredDescription
namet:stringnznwYesThe name of the attachment.
blob-namet:stringnznwYesThe name of the blob storing the attachment
inline-displaybooleanYesIf true the attachment is intended to be displayed inline with the text.
content-idt:stringnznwNoDefines the content identifier for attachments that will be displayed inline with the text. If this attachment is inline and the message text is available as HTML, the HTML contains an img tag reference to this content id in the location where the attachment should be displayed.

Schema

Open schema as a file

Verify XML against this schema

<?xml version="1.0" encoding="utf-16"?>
<schema xmlns:d="urn:com.microsoft.wc.dates" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns:this="urn:com.microsoft.wc.thing.message" targetNamespace="urn:com.microsoft.wc.thing.message" xmlns="http://www.w3.org/2001/XMLSchema">
  <import schemaLocation="base.xsd" namespace="urn:com.microsoft.wc.thing.types" />
  <import schemaLocation="dates.xsd" namespace="urn:com.microsoft.wc.dates" />
  <annotation>
    <documentation>
      <type-id xmlns="http://www.w3.org/2001/XMLSchema">72dc49e1-1486-4634-b651-ef560ed051e5</type-id>
      <type-name xmlns="http://www.w3.org/2001/XMLSchema">Message</type-name>
      <summary xmlns="http://www.w3.org/2001/XMLSchema">
                The Message type is used to store a multipart message, including message text and attachments. 
            </summary>
      <remarks xmlns="http://www.w3.org/2001/XMLSchema">
                The message is stored in two forms.
                
                The "FullMessage" blob contains the message in the native format.
                
                The text of the message is available in the blobs denoted by the 'html-blob-name" and
                "text-blob-name" element. Any attachments to the message are described in the "attachments"
                element. 

                The data stored is intended to be compatible with the SendMail Multipart MIME format
            </remarks>
      <effective-date-element xmlns="http://www.w3.org/2001/XMLSchema">when</effective-date-element>
    </documentation>
  </annotation>
  <complexType name="message-header-item">
    <annotation>
      <documentation>
        <summary xmlns="http://www.w3.org/2001/XMLSchema">
                    An item of header information.
                </summary>
      </documentation>
    </annotation>
    <sequence>
      <element name="name" type="t:stringnznw">
        <annotation>
          <documentation>
            <summary xmlns="http://www.w3.org/2001/XMLSchema">
                            The name of the header item.
                        </summary>
          </documentation>
        </annotation>
      </element>
      <element name="value" type="t:stringnznw">
        <annotation>
          <documentation>
            <summary xmlns="http://www.w3.org/2001/XMLSchema">
                            The value of the header item.
                        </summary>
          </documentation>
        </annotation>
      </element>
    </sequence>
  </complexType>
  <complexType name="message-attachment">
    <annotation>
      <documentation>
        <summary xmlns="http://www.w3.org/2001/XMLSchema">
                    An attachment to the message.
                </summary>
      </documentation>
    </annotation>
    <sequence>
      <element name="name" type="t:stringnznw">
        <annotation>
          <documentation>
            <summary xmlns="http://www.w3.org/2001/XMLSchema">
                            The name of the attachment.
                        </summary>
          </documentation>
        </annotation>
      </element>
      <element name="blob-name" type="t:stringnznw">
        <annotation>
          <documentation>
            <summary xmlns="http://www.w3.org/2001/XMLSchema">
                            The name of the blob storing the attachment
                        </summary>
          </documentation>
        </annotation>
      </element>
      <element name="inline-display" type="boolean">
        <annotation>
          <documentation>
            <summary xmlns="http://www.w3.org/2001/XMLSchema">
                            If true the attachment is intended to be displayed inline with the text. 
                        </summary>
          </documentation>
        </annotation>
      </element>
      <element minOccurs="0" name="content-id" type="t:stringnznw">
        <annotation>
          <documentation>
            <summary xmlns="http://www.w3.org/2001/XMLSchema">
                            Defines the content identifier for attachments that will be displayed inline
                            with the text.
                        </summary>
            <remarks xmlns="http://www.w3.org/2001/XMLSchema">
                            If this attachment is inline and the message text is available as HTML, the HTML
                            contains an img tag reference to this content id in the location where the attachment 
                            should be displayed. 
                        </remarks>
          </documentation>
        </annotation>
      </element>
    </sequence>
  </complexType>
  <element name="message">
    <complexType>
      <annotation>
        <documentation>
          <summary xmlns="http://www.w3.org/2001/XMLSchema">
                        The Message type is used to store a multipart message, including message text and attachments. 
                    </summary>
          <remarks xmlns="http://www.w3.org/2001/XMLSchema">
                        The message is stored in two forms.
                
                        The "FullMessage" blob contains the message in the native format.
                
                        The text of the message is available in the blobs denoted by the 'html-blob-name" and
                        "text-blob-name" element. Any attachments to the message are described in the "attachments"
                        element. 

                        The data stored is intended to be compatible with the SendMail Multipart MIME format
                    </remarks>
        </documentation>
      </annotation>
      <sequence>
        <element name="when" type="d:date-time">
          <annotation>
            <documentation>
              <summary xmlns="http://www.w3.org/2001/XMLSchema">
                                The date and time of the message.
                            </summary>
            </documentation>
          </annotation>
        </element>
        <element minOccurs="0" maxOccurs="unbounded" name="headers" type="this:message-header-item">
          <annotation>
            <documentation>
              <summary xmlns="http://www.w3.org/2001/XMLSchema">
                                A collection of header information associated with this message.
                            </summary>
            </documentation>
          </annotation>
        </element>
        <element name="size" type="positiveInteger">
          <annotation>
            <documentation>
              <summary xmlns="http://www.w3.org/2001/XMLSchema">
                                The size of the message in bytes.
                            </summary>
            </documentation>
          </annotation>
        </element>
        <element minOccurs="0" name="summary" type="string">
          <annotation>
            <documentation>
              <summary xmlns="http://www.w3.org/2001/XMLSchema">
                                A summary of the message.
                            </summary>
              <remarks xmlns="http://www.w3.org/2001/XMLSchema">
                                The summary contains the first 512 characters of the message in text format. 
                            </remarks>
            </documentation>
          </annotation>
        </element>
        <element minOccurs="0" name="html-blob-name" type="t:stringnznw">
          <annotation>
            <documentation>
              <summary xmlns="http://www.w3.org/2001/XMLSchema">
                                The name of the blob that stores the message in HTML format.
                            </summary>
            </documentation>
          </annotation>
        </element>
        <element minOccurs="0" name="text-blob-name" type="t:stringnznw">
          <annotation>
            <documentation>
              <summary xmlns="http://www.w3.org/2001/XMLSchema">
                                The name of the blob that stores the message in text format. 
                            </summary>
            </documentation>
          </annotation>
        </element>
        <element minOccurs="0" maxOccurs="unbounded" name="attachments" type="this:message-attachment">
          <annotation>
            <documentation>
              <summary xmlns="http://www.w3.org/2001/XMLSchema">
                                Attachments to the message.
                            </summary>
            </documentation>
          </annotation>
        </element>
      </sequence>
    </complexType>
  </element>
</schema>


Columns

Columns describe this type in the STT and MTT transformations.

Columns
TagLabelTypeWidth
whenDateString100
fromFromString100
subjectSubjectString100
sizeSizeString100
size-in-bytesSize in bytesString100
wc-idIDString50
wc-versionVersion StampString50
wc-noteNoteString100
wc-tagsTagsString100
wc-dateEffective DateDateTime50
wc-typeType NameString50
wc-typeidType IDString50
wc-sourceSourceString100
wc-brandsBrandsString100
wc-relatedthingsRelated ItemsString100
wc-ispersonalIs PersonalBoolean40
wc-audit-personnameChanged byString100
wc-audit-dateDateDateTime100
wc-audit-actionActionString100
wc-audit-appnameAppString100
wc-issignedSignedBoolean50
wc-isdownversionedDown VersionedBoolean50
wc-isupversionedUp VersionedBoolean50
wc-stateItem StateString50