OrganizationServiceContextExtensions.DeliverPromoteEmail Method (OrganizationServiceContext, Guid, String, String, String, String, String, String, DateTime, String, String, String, EntityCollection, Entity)
Applies To: Dynamics CRM 2013
Creates an email activity instance from the specified email message (Track in CRM). (Developer Extensions)
Namespace: Microsoft.Xrm.Client.Messages
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static Guid DeliverPromoteEmail(
this 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
)
public:
[ExtensionAttribute]
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
)
static member DeliverPromoteEmail :
context:OrganizationServiceContext *
emailId:Guid *
messageId:string *
subject:string *
from:string *
to:string *
cc:string *
bcc:string *
receivedOn:DateTime *
submittedBy:string *
importance:string *
body:string *
attachments:EntityCollection *
extraProperties:Entity -> Guid
<ExtensionAttribute>
Public Shared Function DeliverPromoteEmail (
context As OrganizationServiceContext,
emailId As Guid,
messageId As String,
subject As String,
from As String,
to As String,
cc As String,
bcc As String,
receivedOn As Date,
submittedBy As String,
importance As String,
body As String,
attachments As EntityCollection,
extraProperties As Entity
) As Guid
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
- emailId
Type: System.Guid
messageId
Type: System.StringThe ID of the email message stored in the email header. Required.
subject
Type: System.StringThe subject line for the email message. Optional.
from
Type: System.StringThe from address for the email message. Required.
to
Type: System.StringThe addresses of the recipients of the email message. Required.
cc
Type: System.StringThe addresses of the carbon copy (Cc) recipients for the email message. Required.
bcc
Type: System.StringThe addresses of the blind carbon copy (Bcc) recipients for the email message. Required.
receivedOn
Type: System.DateTimeThe time the message was received on. Required.
submittedBy
Type: System.StringThe email address of the account that is creating the email activity instance. Required.
importance
Type: System.StringThe level of importance for the email message. Required.
body
Type: System.StringThe message body for the email. Required.
attachments
Type: Microsoft.Xrm.Sdk.EntityCollectionA collection of activity mime attachment (email attachment) instances to attach to the email message. Required.
extraProperties
Type: Microsoft.Xrm.Sdk.EntityExtra properties. Optional.
Return Value
Type: System.Guid
Returns a Guid, the ID of the newly created email activity.
Remarks
This is a method wrapper for the DeliverPromoteEmailRequest and DeliverPromoteEmailResponse classes. See the documentation in the Request class for more information about this message.
See Also
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Developer extensions for Microsoft Dynamics CRM 2013
Return to top