OrganizationServiceContextExtensions.DeliverIncomingEmail Kaedah

Applies To: Microsoft Dynamics CRM 2015, Microsoft Dynamics CRM Online

Creates an email activity record from an incoming email message. (Developer Extensions)

Ruang nama: Microsoft.Xrm.Client.Messages
Perhimpunan: Microsoft.Xrm.Client (dalam Microsoft.Xrm.Client.dll)

'Penggunaan
Dim context As OrganizationServiceContext
Dim messageId As String
Dim subject As String
Dim from As String
Dim to As String
Dim cc As String
Dim bcc As String
Dim receivedOn As DateTime
Dim submittedBy As String
Dim importance As String
Dim body As String
Dim attachments As EntityCollection
Dim returnValue As Guid

returnValue = OrganizationServiceContextExtensions.DeliverIncomingEmail(context, messageId, subject, from, to, cc, bcc, receivedOn, submittedBy, importance, body, attachments)

[ExtensionAttribute] 
public static Guid DeliverIncomingEmail (
	OrganizationServiceContext context,
	string messageId,
	string subject,
	string from,
	string to,
	string cc,
	string bcc,
	DateTime receivedOn,
	string submittedBy,
	string importance,
	string body,
	EntityCollection attachments
)

Parameter

context

The organization service context.

messageId

The ID of the email message stored in the email header. Required.

subject

The subject line for the email message. Optional.

from

The from address for the email message. Required.

to

The addresses of the recipients of the email message. Required.

cc

The addresses of the carbon copy (Cc) recipients for the email message. Required.

bcc

The addresses of the blind carbon copy (Bcc) recipients for the email message. Required.

receivedOn

The time the message was received on. Required.

submittedBy

The email address of the account that is creating the email activity instance. Required.

importance

The level of importance for the email message. Required.

body

The message body for the email. Required.

attachments

A collection of activity mime attachment (email attachment) instances to attach to the email message. Required.

Nilai Pulangan

Returns a Guid, the ID of the email.

This is a method wrapper for the DeliverIncomingEmailRequest and DeliverIncomingEmailResponse classes. See the documentation in the Request class for more information about this message.


Sebarang ahli statik awam (Shared dalam Visual Basic) jenis ini adalah selamat rentetan. Dalam apa jua keadaan, ahli tidak dijamin selamat rentetan.

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.
Tunjukkan: