eventMessage 资源类型eventMessage resource type

命名空间:microsoft.graphNamespace: microsoft.graph

表示会议请求、取消或响应(可以是下列任一行为:接受、暂定接受或拒绝)的邮件。A message that represents a meeting request, cancellation, or response (which can be one of the following: acceptance, tentative acceptance, or decline).

eventMessage 实体派生自 messageThe eventMessage entity is derived from message. eventMessageeventMessageRequesteventMessageResponse的基本类型。eventMessage is the base type for eventMessageRequest and eventMessageResponse. meetingMessageType 属性确定事件邮件类型。The meetingMessageType property identifies the type of the event message.

当组织者或应用发送会议请求时,会议请求以 eventMessage 实例的形式到达被邀请者的邮箱中, meetingMessageTypemeetingRequestWhen an organizer or app sends a meeting request, the meeting request arrives in an invitee's mailbox as an eventMessage instance with the meetingMessageType of meetingRequest. 此外,Outlook 会自动在被邀请者的日历中创建一个 事件 实例,并将 showAs 属性为 " 暂定"。In addition, Outlook automatically creates an event instance in the invitee's calendar, with the showAs property as tentative.

若要获取被邀请者邮箱中关联事件的属性,应用可以使用eventMessage事件导航属性,如此get 事件消息示例中所示。To get the properties of the associated event in the invitee's mailbox, the app can use the event navigation property of the eventMessage, as shown in this get event message example. 应用程序还可以通过编程方式代表被邀请者响应事件,即 接受暂时接受拒绝 事件。The app can also respond to the event on behalf of the invitee programmatically, by accepting, tentatively accepting, or declining the event.

除了会议请求之外,在被邀请者的邮箱中可以找到 eventMessage 实例,因为事件组织者取消了会议,或者由于与会者响应会议请求而在组织者邮箱中。Aside from a meeting request, an eventMessage instance can be found in an invitee's mailbox as the result of an event organizer cancelling a meeting, or in the organizer's mailbox as a result of an invitee responding to the meeting request. 应用可以对事件邮件执行操作,就像对邮件执行操作一样,但略有不同。An app can act on event messages in the same way as on messages with minor differences.

方法Methods

方法Method 返回类型Return Type 说明Description
获取 eventMessageGet eventMessage eventMessageeventMessage 读取 eventmessage 对象的属性和关系。Read properties and relationships of eventMessage object.
更新Update eventMessageeventMessage 更新 eventMessage 对象。Update eventMessage object.
删除Delete None 更新 eventMessage 对象。Delete eventMessage object.
copycopy messagemessage 将邮件复制到文件夹。Copy a message to a folder.
createForwardcreateForward messagemessage 创建转发邮件的草稿。然后,你可以 更新发送 草稿。Create a draft of the Forward message. You can then update or send the draft.
createReplycreateReply messagemessage 创建回复邮件的草稿。然后,你可以 更新发送 草稿。Create a draft of the Reply message. You can then update or send the draft.
createReplyAllcreateReplyAll messagemessage 创建全部答复邮件的草稿。然后,可以更新发送草稿。Create a draft of the Reply All message. You can then update or send the draft.
转发forward None 转发邮件。然后邮件保存在已发送邮件文件夹中。Forward a message. The message is then saved in the Sent Items folder.
移动move messagemessage 将邮件移到文件夹。此操作会在目标文件夹中新建邮件副本。Move a message to a folder. This creates a new copy of the message in the destination folder.
回复reply None 答复邮件发件人然后邮件保存在已发送邮件文件夹中。Reply to the sender of a message. The message is then saved in the Sent Items folder.
replyAllreplyAll None 答复邮件的所有收件人。然后邮件保存在已发送邮件文件夹中。Reply to all recipients of a message. The message is then saved in the Sent Items folder.
发送send None 发送以前创建的邮件草稿。然后邮件保存在已发送邮件文件夹中。Sends a previously created message draft. The message is then saved in the Sent Items folder.
附件Attachments
列出附件List attachments attachment 集合attachment collection 获取 eventMessage 的所有附件。Get all attachments on an eventMessage.
Add attachmentAdd attachment 附件attachment 通过发布到附件集合,向 eventMessage 添加新附件。Add a new attachment to an eventMessage by posting to the attachments collection.
开放扩展Open extensions
创建开放扩展Create open extension openTypeExtensionopenTypeExtension 创建开放扩展,并在新建或现有的资源实例中添加自定义属性。Create an open extension and add custom properties in a new or existing instance of a resource.
获取开放扩展Get open extension openTypeExtension 集合openTypeExtension collection 获取通过名称或完全限定的名称识别的一个或多个开放扩展对象。Get an open extension object or objects identified by name or fully qualified name.
扩展属性Extended properties
创建单值扩展属性Create single-value extended property eventMessageeventMessage 在新建或现有 eventMessage 中创建一个或多个单值扩展属性。Create one or more single-value extended properties in a new or existing eventMessage.
获取具有单值扩展属性的 eventMessageGet eventMessage with single-value extended property eventMessageeventMessage 通过使用 $expand$filter 获取包含单值扩展属性的 eventMessage。Get eventMessages that contain a single-value extended property by using $expand or $filter.
创建多值扩展属性Create multi-value extended property eventMessageeventMessage 在新建或现有的 eventMessage 中创建一个或多个多值扩展属性。Create one or more multi-value extended properties in a new or existing eventMessage.
获取具有多值扩展属性的 eventMessageGet eventMessage with multi-value extended property eventMessageeventMessage 使用 $expand 获取包含一个多值扩展属性的 eventMessage。Get an eventMessage that contains a multi-value extended property by using $expand.

属性Properties

属性Property 类型Type 说明Description
bccRecipientsbccRecipients recipient collectionrecipient collection 邮件的密件抄送收件人。The Bcc: recipients for the message.
bodybody itemBodyitemBody 邮件的正文。可以是 HTML 格式或文本格式。The body of the message. It can be in HTML or text format.
bodyPreviewbodyPreview 字符串String 邮件正文中的前 255 个字符。文本格式。The first 255 characters of the message body. It is in text format.
categoriescategories String collectionString collection 与邮件关联的类别。The categories associated with the message.
ccRecipientsccRecipients recipient collectionrecipient collection 邮件的抄送收件人。The Cc: recipients for the message.
changeKeychangeKey StringString 邮件的版本。The version of the message.
conversationIdconversationId StringString 电子邮件所属对话的 ID。The ID of the conversation the email belongs to.
conversationIndexconversationIndex Edm.BinaryEdm.Binary 指出消息在对话中的位置。Indicates the position of the message within the conversation.
createdDateTimecreatedDateTime DateTimeOffsetDateTimeOffset 创建邮件的日期和时间。The date and time the message was created.
flagflag followupFlagfollowupFlag 指示邮件的状态、开始日期、截止日期或完成日期的标志值。The flag value that indicates the status, start date, due date, or completion date for the message.
发件人from recipientrecipient 发送邮件邮箱的所有者。The owner of the mailbox from which the message is sent. 在多数情况中,此数值与“发件人”属性相同,但共享或委派情景除外。In most cases, this value is the same as the sender property, except for sharing or delegation scenarios. 值必须对应于使用的实际邮箱。The value must correspond to the actual mailbox used. 查看更多有关为邮件设置 from 和 sender 属性的信息。Find out more about setting the from and sender properties of a message.
hasAttachmentshasAttachments BooleanBoolean 指示邮件是否包含附件。Indicates whether the message has attachments.
idid StringString 事件消息的唯一标识符 (请注意,如果移动或更改了邮件,此值可能会发生变化) Unique identifier for the event message (note that this value may change if a message is moved or altered)
importanceimportance StringString 邮件的重要性:lownormalhighThe importance of the message: low, normal, high.
inferenceClassificationinferenceClassification StringString 可能的值为: focusedotherThe possible values are: focused, other.
internetMessageHeadersinternetMessageHeaders internetMessageHeader 集合internetMessageHeader collection RFC5322 定义的邮件头集合,它提供邮件获取的从发件人到收件人的网络路径的详细信息。The collection of message headers, defined by RFC5322, that provide details of the network path taken by a message from the sender to the recipient. 只读。Read-only.
internetMessageIdinternetMessageId StringString RFC2822 指定格式的邮件 ID。The message ID in the format specified by RFC2822.
isDelegatedisDelegated BooleanBoolean 如果代理可访问此会议请求,则为 True,否则为 false。True if this meeting request is accessible to a delegate, false otherwise. 默认为 false。Default is false.
isDeliveryReceiptRequestedisDeliveryReceiptRequested BooleanBoolean 指示是否需要发送邮件已读回执。Indicates whether a read receipt is requested for the message.
isDraftisDraft BooleanBoolean 指示邮件是否为草稿。如果尚未发送,则此邮件是一封草稿。Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet.
isReadisRead BooleanBoolean 指示是否已阅读该邮件。Indicates whether the message has been read.
isReadReceiptRequestedisReadReceiptRequested BooleanBoolean 指示是否需要发送邮件已读回执。Indicates whether a read receipt is requested for the message.
lastModifiedDateTimelastModifiedDateTime DateTimeOffsetDateTimeOffset 上次更改邮件的日期和时间。The date and time the message was last changed.
meetingMessageTypemeetingMessageType meetingMessageTypemeetingMessageType 事件消息的类型:nonemeetingRequestmeetingCancelledmeetingAcceptedmeetingTenativelyAcceptedmeetingDeclinedThe type of event message: none, meetingRequest, meetingCancelled, meetingAccepted, meetingTenativelyAccepted, meetingDeclined.
parentFolderIdparentFolderId StringString 邮件的父 MailFolder 的唯一标识符。The unique identifier for the message's parent mailFolder.
receivedDateTimereceivedDateTime DateTimeOffsetDateTimeOffset 收到邮件的日期和时间。The date and time the message was received.
replyToreplyTo recipient collectionrecipient collection 在答复时使用的电子邮件地址。The email addresses to use when replying.
sendersender recipientrecipient 实际用于生成邮件的帐户。The account that is actually used to generate the message. 大多数情况下,此值与“from”属性相同。In most cases, this value is the same as the from property. 共享邮箱发送邮件时,可以将此属性设置为其他值,对于共享日历,或设置为代理人You can set this property to a different value when sending a message from a shared mailbox, for a shared calendar, or as a delegate. 在任何情况下,此值必须对应于使用的实际邮箱。In any case, the value must correspond to the actual mailbox used. 查看更多有关为邮件设置 from 和 sender 属性的信息。Find out more about setting the from and sender properties of a message.
sentDateTimesentDateTime DateTimeOffsetDateTimeOffset 发送邮件的日期和时间。The date and time the message was sent.
subjectsubject StringString 邮件的主题。The subject of the message.
toRecipientstoRecipients recipient collectionrecipient collection 邮件的收件人。The To: recipients for the message.
uniqueBodyuniqueBody itemBodyitemBody 当前邮件专用的邮件正文部分。The part of the body of the message that is unique to the current message.
webLinkwebLink StringString 用于打开 web 上的 Outlook 中的邮件的 URL。The URL to open the message in Outlook on the web.

可以将 ispopout 参数附加到此 URL 的末尾以更改邮件的显示方式。You can append an ispopout argument to the end of the URL to change how the message is displayed. 如果 ispopout 不存在或设置为 1,则邮件显示在弹出窗口中。If ispopout is not present or if it is set to 1, then the message is shown in a popout window. 如果将 ispopout 设置为0,则浏览器将在 web 审阅窗格中的 Outlook 中显示该邮件。If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.

如果您通过 web 上的 Outlook 登录到您的邮箱,则邮件将在浏览器中打开。The message will open in the browser if you are logged in to your mailbox via Outlook on the web. 如果尚未使用浏览器登录,系统将提示你登录。You will be prompted to login if you are not already logged in with the browser.

无法从 iFrame 中访问此 URL。This URL cannot be accessed from within an iFrame.

关系Relationships

关系Relationship 类型Type 说明Description
attachmentsattachments 附件 集合attachment collection 只读。可为 NULL。Read-only. Nullable.
eventevent eventevent 与事件消息相关联的事件。对于与会者或会议室资源,假定已将日历助理设为在会议请求事件消息到达时自动更新包含事件的日历。导航属性。只读。The event associated with the event message. The assumption for attendees or room resources is that the Calendar Attendant is set to automatically update the calendar with an event when meeting request event messages arrive. Navigation property. Read-only.
extensionsextensions 扩展集合extension collection 为 eventMessage 定义的开放扩展集合。只读。可为 NULL。The collection of open extensions defined for the eventMessage. Read-only. Nullable.
multiValueExtendedPropertiesmultiValueExtendedProperties multiValueLegacyExtendedProperty 集合multiValueLegacyExtendedProperty collection 为 eventMessage 定义的多值扩展属性的集合。只读。可为 Null。The collection of multi-value extended properties defined for the eventMessage. Read-only. Nullable.
singleValueExtendedPropertiessingleValueExtendedProperties singleValueLegacyExtendedProperty collectionsingleValueLegacyExtendedProperty collection 为 eventMessage 定义的单值扩展属性的集合。只读。可为 Null。The collection of single-value extended properties defined for the eventMessage. Read-only. Nullable.

JSON 表示形式JSON representation

下面是资源的 JSON 表示形式。Here is a JSON representation of the resource

{
  "bccRecipients": [{"@odata.type": "microsoft.graph.recipient"}],
  "body": {"@odata.type": "microsoft.graph.itemBody"},
  "bodyPreview": "string",
  "categories": ["string"],
  "ccRecipients": [{"@odata.type": "microsoft.graph.recipient"}],
  "changeKey": "string",
  "conversationId": "string",
  "conversationIndex": "String (binary)",
  "createdDateTime": "DateTimeOffset",
  "event": { "@odata.type": "microsoft.graph.event" },
  "flag": {"@odata.type": "microsoft.graph.followupFlag"},
  "from": {"@odata.type": "microsoft.graph.recipient"},
  "hasAttachments": true,
  "id": "string (identifier)",
  "importance": "String",
  "inferenceClassification": "String",
  "internetMessageHeaders": [{"@odata.type": "microsoft.graph.internetMessageHeader"}],
  "internetMessageId": "String",
  "isDelegated": true,
  "isDeliveryReceiptRequested": true,
  "isDraft": true,
  "isRead": true,
  "isReadReceiptRequested": true,
  "lastModifiedDateTime": "DateTimeOffset",
  "meetingMessageType": "String",
  "parentFolderId": "string",
  "receivedDateTime": "DateTimeOffset",
  "replyTo": [{"@odata.type": "microsoft.graph.recipient"}],
  "sender": {"@odata.type": "microsoft.graph.recipient"},
  "sentDateTime": "DateTimeOffset",
  "subject": "string",
  "toRecipients": [{"@odata.type": "microsoft.graph.recipient"}],
  "uniqueBody": {"@odata.type": "microsoft.graph.itemBody"},
  "webLink": "string"
}