OrganizationServiceContextExtensions.DeliverIncomingEmail Method (OrganizationServiceContext, String, String, String, String, String, String, DateTime, String, String, String, EntityCollection)
Applies To: Dynamics CRM 2015
Creates an email activity record from an incoming email message. (Developer Extensions)
Namespace: Microsoft.Xrm.Client.Messages
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static Guid DeliverIncomingEmail(
this OrganizationServiceContext context,
string messageId,
string subject,
string from,
string to,
string cc,
string bcc,
DateTime receivedOn,
string submittedBy,
string importance,
string body,
EntityCollection attachments
)
public:
[ExtensionAttribute]
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
)
static member DeliverIncomingEmail :
context:OrganizationServiceContext *
messageId:string *
subject:string *
from:string *
to:string *
cc:string *
bcc:string *
receivedOn:DateTime *
submittedBy:string *
importance:string *
body:string *
attachments:EntityCollection -> Guid
<ExtensionAttribute>
Public Shared Function DeliverIncomingEmail (
context As OrganizationServiceContext,
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
) As Guid
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
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.
Return Value
Type: System.Guid
Returns a Guid, the ID of the email.
Remarks
This is a method wrapper for the DeliverIncomingEmailRequest and DeliverIncomingEmailResponse 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 2015
Return to top
© 2017 Microsoft. All rights reserved. Copyright