OrganizationServiceContextExtensions.DeliverPromoteEmail Kaedah

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

Creates an email activity instance from the specified email message (Track in CRM). (Developer Extensions)

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

Dim context As OrganizationServiceContext
Dim emailId As Guid
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 extraProperties As Entity
Dim returnValue As Guid

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

public static Guid DeliverPromoteEmail (
	OrganizationServiceContext context,
	Guid emailId,
	string messageId,
	string subject,
	string from,
	string to,
	string cc,
	string bcc,
	DateTime receivedOn,
	string submittedBy,
	string importance,
	string body,
	EntityCollection attachments,
	Entity extraProperties



The organization service context.



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


The subject line for the email message. Optional.


The from address for the email message. Required.


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


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


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


The time the message was received on. Required.


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


The level of importance for the email message. Required.


The message body for the email. Required.


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


Extra properties. Optional.

Nilai Pulangan

Returns a Guid, the ID of the newly created email activity.

This is a method wrapper for the DeliverPromoteEmailRequest and DeliverPromoteEmailResponse 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.