Partager via


OrganizationServiceContextExtensions.BulkDetectDuplicates Method (OrganizationServiceContext, QueryBase, String, Boolean, Guid, Guid[], Guid[], String, DateTime)

 

Applies To: Dynamics CRM 2015

Submits an asynchronous duplicates detection job. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Messages
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static Guid BulkDetectDuplicates(
    this OrganizationServiceContext context,
    QueryBase query,
    string jobName,
    bool sendEmailNotification,
    Guid templateId,
    Guid[] toRecipients,
    Guid[] cCRecipients,
    string recurrencePattern,
    DateTime recurrenceStartTime
)
public:
[ExtensionAttribute]
static Guid BulkDetectDuplicates(
    OrganizationServiceContext^ context,
    QueryBase^ query,
    String^ jobName,
    bool sendEmailNotification,
    Guid templateId,
    array<Guid>^ toRecipients,
    array<Guid>^ cCRecipients,
    String^ recurrencePattern,
    DateTime recurrenceStartTime
)
static member BulkDetectDuplicates : 
        context:OrganizationServiceContext *
        query:QueryBase *
        jobName:string *
        sendEmailNotification:bool *
        templateId:Guid *
        toRecipients:Guid[] *
        cCRecipients:Guid[] *
        recurrencePattern:string *
        recurrenceStartTime:DateTime -> Guid
<ExtensionAttribute>
Public Shared Function BulkDetectDuplicates (
    context As OrganizationServiceContext,
    query As QueryBase,
    jobName As String,
    sendEmailNotification As Boolean,
    templateId As Guid,
    toRecipients As Guid(),
    cCRecipients As Guid(),
    recurrencePattern As String,
    recurrenceStartTime As Date
) As Guid

Parameters

  • jobName
    Type: System.String

    The name of the asynchronous system job that detects and logs multiple duplicate records. Required.

  • sendEmailNotification
    Type: System.Boolean

    A value that indicates whether an email notification is sent after the asynchronous system job that detects multiple duplicate records finishes running. Required.

  • templateId
    Type: System.Guid

    The the template (email template) that is used for the email notification.

  • toRecipients
    Type: System.Guid[]

    An array of IDs for the system users (users) who are listed in the To box of the email notification.

  • cCRecipients
    Type: System.Guid[]

    An array of IDs for the system users (users) who are listed in the Cc box of the email notification.

  • recurrencePattern
    Type: System.String

    The recurrence pattern for the asynchronous system job that detects multiple duplicate records. Optional.

  • recurrenceStartTime
    Type: System.DateTime

    The start date and time of an asynchronous system job that detects and logs multiple duplicate records. Optional.

Return Value

Type: System.Guid

Returns a Guid, the ID of an asynchronous bulk detect duplicates job that detects and logs duplicate records.

Remarks

This is a method wrapper for the BulkDetectDuplicatesRequest and BulkDetectDuplicatesResponse 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