OrganizationServiceContextExtensions.DeliverPromoteEmail Method (OrganizationServiceContext, Guid, String, String, String, String, String, String, DateTime, String, String, String, EntityCollection, Entity)


Applies To: Dynamics CRM 2015

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)


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
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
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


  • 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 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.

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