Dela via


OrganizationServiceContextExtensions.DeliverIncomingEmail Method (OrganizationServiceContext, String, String, String, String, String, String, DateTime, String, String, String, EntityCollection)

 

Applies To: Dynamics CRM 2013

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

  • messageId
    Type: System.String

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

  • subject
    Type: System.String

    The subject line for the email message. Optional.

  • from
    Type: System.String

    The from address for the email message. Required.

  • to
    Type: System.String

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

  • cc
    Type: System.String

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

  • bcc
    Type: System.String

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

  • receivedOn
    Type: System.DateTime

    The time the message was received on. Required.

  • submittedBy
    Type: System.String

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

  • importance
    Type: System.String

    The level of importance for the email message. Required.

  • body
    Type: System.String

    The message body for the email. 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 2013

Return to top