New-MgUserMessage

Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:\n- Include an attachment to the message.\n- Update the draft later to add content to the body or change other message properties. When using MIME format:\n- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.\n- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message.

Syntax

New-MgUserMessage
   -UserId <String>
   [-AdditionalProperties <Hashtable>]
   [-Attachments <IMicrosoftGraphAttachment[]>]
   [-BccRecipients <IMicrosoftGraphRecipient[]>]
   [-Body <IMicrosoftGraphItemBody>]
   [-BodyPreview <String>]
   [-Categories <String[]>]
   [-CcRecipients <IMicrosoftGraphRecipient[]>]
   [-ChangeKey <String>]
   [-ConversationId <String>]
   [-ConversationIndexInputFile <String>]
   [-CreatedDateTime <DateTime>]
   [-Extensions <IMicrosoftGraphExtension[]>]
   [-Flag <IMicrosoftGraphFollowupFlag>]
   [-From <IMicrosoftGraphRecipient>]
   [-HasAttachments]
   [-Id <String>]
   [-Importance <String>]
   [-InferenceClassification <String>]
   [-InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]
   [-InternetMessageId <String>]
   [-IsDeliveryReceiptRequested]
   [-IsDraft]
   [-IsRead]
   [-IsReadReceiptRequested]
   [-LastModifiedDateTime <DateTime>]
   [-MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]
   [-ParentFolderId <String>]
   [-ReceivedDateTime <DateTime>]
   [-ReplyTo <IMicrosoftGraphRecipient[]>]
   [-Sender <IMicrosoftGraphRecipient>]
   [-SentDateTime <DateTime>]
   [-SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]
   [-Subject <String>]
   [-ToRecipients <IMicrosoftGraphRecipient[]>]
   [-UniqueBody <IMicrosoftGraphItemBody>]
   [-WebLink <String>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgUserMessage
   -UserId <String>
   -BodyParameter <IMicrosoftGraphMessage>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgUserMessage
   -InputObject <IMailIdentity>
   [-AdditionalProperties <Hashtable>]
   [-Attachments <IMicrosoftGraphAttachment[]>]
   [-BccRecipients <IMicrosoftGraphRecipient[]>]
   [-Body <IMicrosoftGraphItemBody>]
   [-BodyPreview <String>]
   [-Categories <String[]>]
   [-CcRecipients <IMicrosoftGraphRecipient[]>]
   [-ChangeKey <String>]
   [-ConversationId <String>]
   [-ConversationIndexInputFile <String>]
   [-CreatedDateTime <DateTime>]
   [-Extensions <IMicrosoftGraphExtension[]>]
   [-Flag <IMicrosoftGraphFollowupFlag>]
   [-From <IMicrosoftGraphRecipient>]
   [-HasAttachments]
   [-Id <String>]
   [-Importance <String>]
   [-InferenceClassification <String>]
   [-InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]
   [-InternetMessageId <String>]
   [-IsDeliveryReceiptRequested]
   [-IsDraft]
   [-IsRead]
   [-IsReadReceiptRequested]
   [-LastModifiedDateTime <DateTime>]
   [-MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]
   [-ParentFolderId <String>]
   [-ReceivedDateTime <DateTime>]
   [-ReplyTo <IMicrosoftGraphRecipient[]>]
   [-Sender <IMicrosoftGraphRecipient>]
   [-SentDateTime <DateTime>]
   [-SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]
   [-Subject <String>]
   [-ToRecipients <IMicrosoftGraphRecipient[]>]
   [-UniqueBody <IMicrosoftGraphItemBody>]
   [-WebLink <String>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-MgUserMessage
   -InputObject <IMailIdentity>
   -BodyParameter <IMicrosoftGraphMessage>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:\n- Include an attachment to the message.\n- Update the draft later to add content to the body or change other message properties. When using MIME format:\n- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.\n- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message.

Examples

Example 1: Using the New-MgUserMessage Cmdlet

Import-Module Microsoft.Graph.Mail
$params = @{
	Subject = "Did you see last night's game?"
	Importance = "Low"
	Body = @{
		ContentType = "HTML"
		Content = "They were <b>awesome</b>!"
	}
	ToRecipients = @(
		@{
			EmailAddress = @{
				Address = "AdeleV@contoso.onmicrosoft.com"
			}
		}
	)
}
# A UPN can also be used as -UserId.
New-MgUserMessage -UserId $userId -BodyParameter $params

This example shows how to use the New-MgUserMessage Cmdlet. To learn about permissions for this resource, see the permissions reference.

Example 2: Using the New-MgUserMessage Cmdlet

Import-Module Microsoft.Graph.Mail
$params = @{
	Subject = "9/8/2018: concert"
	Body = @{
		ContentType = "HTML"
		Content = "The group represents Washington."
	}
	ToRecipients = @(
		@{
			EmailAddress = @{
				Address = "AlexW@contoso.OnMicrosoft.com"
			}
		}
	)
	InternetMessageHeaders = @(
		@{
			Name = "x-custom-header-group-name"
			Value = "Washington"
		}
		@{
			Name = "x-custom-header-group-id"
			Value = "WA001"
		}
	)
}
# A UPN can also be used as -UserId.
New-MgUserMessage -UserId $userId -BodyParameter $params

This example shows how to use the New-MgUserMessage Cmdlet. To learn about permissions for this resource, see the permissions reference.

Parameters

-AdditionalProperties

Additional Parameters

Type:Hashtable
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Attachments

The fileAttachment and itemAttachment attachments for the message. To construct, please use Get-Help -Online and see NOTES section for ATTACHMENTS properties and create a hash table.

Type:IMicrosoftGraphAttachment[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-BccRecipients

The Bcc: recipients for the message. To construct, please use Get-Help -Online and see NOTES section for BCCRECIPIENTS properties and create a hash table.

Type:IMicrosoftGraphRecipient[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Body

itemBody To construct, please use Get-Help -Online and see NOTES section for BODY properties and create a hash table.

Type:IMicrosoftGraphItemBody
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-BodyParameter

message To construct, please use Get-Help -Online and see NOTES section for BODYPARAMETER properties and create a hash table.

Type:IMicrosoftGraphMessage
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-BodyPreview

The first 255 characters of the message body. It is in text format.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Categories

The categories associated with the item

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-CcRecipients

The Cc: recipients for the message. To construct, please use Get-Help -Online and see NOTES section for CCRECIPIENTS properties and create a hash table.

Type:IMicrosoftGraphRecipient[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ChangeKey

Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ConversationId

The ID of the conversation the email belongs to.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ConversationIndexInputFile

Input File for ConversationIndex (Indicates the position of the message within the conversation.)

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-CreatedDateTime

The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Extensions

The collection of open extensions defined for the message. Nullable. To construct, please use Get-Help -Online and see NOTES section for EXTENSIONS properties and create a hash table.

Type:IMicrosoftGraphExtension[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Flag

followupFlag To construct, please use Get-Help -Online and see NOTES section for FLAG properties and create a hash table.

Type:IMicrosoftGraphFollowupFlag
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-From

recipient To construct, please use Get-Help -Online and see NOTES section for FROM properties and create a hash table.

Type:IMicrosoftGraphRecipient
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-HasAttachments

Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Id

The unique idenfier for an entity. Read-only.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Importance

importance

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-InferenceClassification

inferenceClassificationType

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter To construct, please use Get-Help -Online and see NOTES section for INPUTOBJECT properties and create a hash table.

Type:IMailIdentity
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-InternetMessageHeaders

. To construct, please use Get-Help -Online and see NOTES section for INTERNETMESSAGEHEADERS properties and create a hash table.

Type:IMicrosoftGraphInternetMessageHeader[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-InternetMessageId

.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-IsDeliveryReceiptRequested

.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-IsDraft

.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-IsRead

.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-IsReadReceiptRequested

.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-LastModifiedDateTime

The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-MultiValueExtendedProperties

The collection of multi-value extended properties defined for the message. Nullable. To construct, please use Get-Help -Online and see NOTES section for MULTIVALUEEXTENDEDPROPERTIES properties and create a hash table.

Type:IMicrosoftGraphMultiValueLegacyExtendedProperty[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ParentFolderId

.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ReceivedDateTime

.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ReplyTo

. To construct, please use Get-Help -Online and see NOTES section for REPLYTO properties and create a hash table.

Type:IMicrosoftGraphRecipient[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Sender

recipient To construct, please use Get-Help -Online and see NOTES section for SENDER properties and create a hash table.

Type:IMicrosoftGraphRecipient
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SentDateTime

.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-SingleValueExtendedProperties

The collection of single-value extended properties defined for the message. Nullable. To construct, please use Get-Help -Online and see NOTES section for SINGLEVALUEEXTENDEDPROPERTIES properties and create a hash table.

Type:IMicrosoftGraphSingleValueLegacyExtendedProperty[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Subject

.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ToRecipients

. To construct, please use Get-Help -Online and see NOTES section for TORECIPIENTS properties and create a hash table.

Type:IMicrosoftGraphRecipient[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-UniqueBody

itemBody To construct, please use Get-Help -Online and see NOTES section for UNIQUEBODY properties and create a hash table.

Type:IMicrosoftGraphItemBody
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-UserId

key: id of user

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-WebLink

.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Graph.PowerShell.Models.IMailIdentity

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage

Outputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphMessage

Notes

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

ATTACHMENTS <IMicrosoftGraphAttachment[]>: The fileAttachment and itemAttachment attachments for the message.

  • [Id <String>]: The unique idenfier for an entity. Read-only.
  • [ContentType <String>]: The MIME type.
  • [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false.
  • [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
  • [Name <String>]: The attachment's file name.
  • [Size <Int32?>]: The length of the attachment in bytes.

BCCRECIPIENTS <IMicrosoftGraphRecipient[]>: The Bcc: recipients for the message.

  • [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress
    • [(Any) <Object>]: This indicates any property can be added to this object.
    • [Address <String>]: The email address of the person or entity.
    • [Name <String>]: The display name of the person or entity.

BODY <IMicrosoftGraphItemBody>: itemBody

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [Content <String>]: The content of the item.
  • [ContentType <String>]: bodyType

BODYPARAMETER <IMicrosoftGraphMessage>: message

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [Categories <String[]>]: The categories associated with the item
  • [ChangeKey <String>]: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.
  • [CreatedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
  • [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
  • [Id <String>]: The unique idenfier for an entity. Read-only.
  • [Attachments <IMicrosoftGraphAttachment[]>]: The fileAttachment and itemAttachment attachments for the message.
    • [Id <String>]: The unique idenfier for an entity. Read-only.
    • [ContentType <String>]: The MIME type.
    • [IsInline <Boolean?>]: true if the attachment is an inline attachment; otherwise, false.
    • [LastModifiedDateTime <DateTime?>]: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
    • [Name <String>]: The attachment's file name.
    • [Size <Int32?>]: The length of the attachment in bytes.
  • [BccRecipients <IMicrosoftGraphRecipient[]>]: The Bcc: recipients for the message.
    • [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress
      • [(Any) <Object>]: This indicates any property can be added to this object.
      • [Address <String>]: The email address of the person or entity.
      • [Name <String>]: The display name of the person or entity.
  • [Body <IMicrosoftGraphItemBody>]: itemBody
    • [(Any) <Object>]: This indicates any property can be added to this object.
    • [Content <String>]: The content of the item.
    • [ContentType <String>]: bodyType
  • [BodyPreview <String>]: The first 255 characters of the message body. It is in text format.
  • [CcRecipients <IMicrosoftGraphRecipient[]>]: The Cc: recipients for the message.
  • [ConversationId <String>]: The ID of the conversation the email belongs to.
  • [ConversationIndex <Byte[]>]: Indicates the position of the message within the conversation.
  • [Extensions <IMicrosoftGraphExtension[]>]: The collection of open extensions defined for the message. Nullable.
    • [Id <String>]: The unique idenfier for an entity. Read-only.
  • [Flag <IMicrosoftGraphFollowupFlag>]: followupFlag
    • [(Any) <Object>]: This indicates any property can be added to this object.
    • [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone
      • [(Any) <Object>]: This indicates any property can be added to this object.
      • [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).
      • [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for more possible values.
    • [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone
    • [FlagStatus <String>]: followupFlagStatus
    • [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone
  • [From <IMicrosoftGraphRecipient>]: recipient
  • [HasAttachments <Boolean?>]: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as .
  • [Importance <String>]: importance
  • [InferenceClassification <String>]: inferenceClassificationType
  • [InternetMessageHeaders <IMicrosoftGraphInternetMessageHeader[]>]:
    • [Name <String>]: Represents the key in a key-value pair.
    • [Value <String>]: The value in a key-value pair.
  • [InternetMessageId <String>]:
  • [IsDeliveryReceiptRequested <Boolean?>]:
  • [IsDraft <Boolean?>]:
  • [IsRead <Boolean?>]:
  • [IsReadReceiptRequested <Boolean?>]:
  • [MultiValueExtendedProperties <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>]: The collection of multi-value extended properties defined for the message. Nullable.
    • [Id <String>]: The unique idenfier for an entity. Read-only.
    • [Value <String[]>]: A collection of property values.
  • [ParentFolderId <String>]:
  • [ReceivedDateTime <DateTime?>]:
  • [ReplyTo <IMicrosoftGraphRecipient[]>]:
  • [Sender <IMicrosoftGraphRecipient>]: recipient
  • [SentDateTime <DateTime?>]:
  • [SingleValueExtendedProperties <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>]: The collection of single-value extended properties defined for the message. Nullable.
    • [Id <String>]: The unique idenfier for an entity. Read-only.
    • [Value <String>]: A property value.
  • [Subject <String>]:
  • [ToRecipients <IMicrosoftGraphRecipient[]>]:
  • [UniqueBody <IMicrosoftGraphItemBody>]: itemBody
  • [WebLink <String>]:

CCRECIPIENTS <IMicrosoftGraphRecipient[]>: The Cc: recipients for the message.

  • [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress
    • [(Any) <Object>]: This indicates any property can be added to this object.
    • [Address <String>]: The email address of the person or entity.
    • [Name <String>]: The display name of the person or entity.

EXTENSIONS <IMicrosoftGraphExtension[]>: The collection of open extensions defined for the message. Nullable.

  • [Id <String>]: The unique idenfier for an entity. Read-only.

FLAG <IMicrosoftGraphFollowupFlag>: followupFlag

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [CompletedDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone
    • [(Any) <Object>]: This indicates any property can be added to this object.
    • [DateTime <String>]: A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).
    • [TimeZone <String>]: Represents a time zone, for example, 'Pacific Standard Time'. See below for more possible values.
  • [DueDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone
  • [FlagStatus <String>]: followupFlagStatus
  • [StartDateTime <IMicrosoftGraphDateTimeZone>]: dateTimeTimeZone

FROM <IMicrosoftGraphRecipient>: recipient

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress
    • [(Any) <Object>]: This indicates any property can be added to this object.
    • [Address <String>]: The email address of the person or entity.
    • [Name <String>]: The display name of the person or entity.

INPUTOBJECT <IMailIdentity>: Identity Parameter

  • [AttachmentId <String>]: key: id of attachment
  • [ExtensionId <String>]: key: id of extension
  • [InferenceClassificationOverrideId <String>]: key: id of inferenceClassificationOverride
  • [MailFolderId <String>]: key: id of mailFolder
  • [MailFolderId1 <String>]: key: id of mailFolder
  • [MentionId <String>]: key: id of mention
  • [MessageId <String>]: key: id of message
  • [MessageRuleId <String>]: key: id of messageRule
  • [MultiValueLegacyExtendedPropertyId <String>]: key: id of multiValueLegacyExtendedProperty
  • [SingleValueLegacyExtendedPropertyId <String>]: key: id of singleValueLegacyExtendedProperty
  • [UserConfigurationId <String>]: key: id of userConfiguration
  • [UserId <String>]: key: id of user

INTERNETMESSAGEHEADERS <IMicrosoftGraphInternetMessageHeader[]>: .

  • [Name <String>]: Represents the key in a key-value pair.
  • [Value <String>]: The value in a key-value pair.

MULTIVALUEEXTENDEDPROPERTIES <IMicrosoftGraphMultiValueLegacyExtendedProperty[]>: The collection of multi-value extended properties defined for the message. Nullable.

  • [Id <String>]: The unique idenfier for an entity. Read-only.
  • [Value <String[]>]: A collection of property values.

REPLYTO <IMicrosoftGraphRecipient[]>: .

  • [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress
    • [(Any) <Object>]: This indicates any property can be added to this object.
    • [Address <String>]: The email address of the person or entity.
    • [Name <String>]: The display name of the person or entity.

SENDER <IMicrosoftGraphRecipient>: recipient

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress
    • [(Any) <Object>]: This indicates any property can be added to this object.
    • [Address <String>]: The email address of the person or entity.
    • [Name <String>]: The display name of the person or entity.

SINGLEVALUEEXTENDEDPROPERTIES <IMicrosoftGraphSingleValueLegacyExtendedProperty[]>: The collection of single-value extended properties defined for the message. Nullable.

  • [Id <String>]: The unique idenfier for an entity. Read-only.
  • [Value <String>]: A property value.

TORECIPIENTS <IMicrosoftGraphRecipient[]>: .

  • [EmailAddress <IMicrosoftGraphEmailAddress>]: emailAddress
    • [(Any) <Object>]: This indicates any property can be added to this object.
    • [Address <String>]: The email address of the person or entity.
    • [Name <String>]: The display name of the person or entity.

UNIQUEBODY <IMicrosoftGraphItemBody>: itemBody

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [Content <String>]: The content of the item.
  • [ContentType <String>]: bodyType