Partager via


OrganizationServiceContextExtensions.QualifyLead Method (OrganizationServiceContext, EntityReference, Boolean, Boolean, Boolean, EntityReference, EntityReference, EntityReference, OptionSetValue)

 

Applies To: Dynamics CRM 2015

Qualifies a lead and creates an account, contact, or opportunity records that are linked to the originating lead. (Developer Extensions)

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

Syntax

public static EntityReferenceCollection QualifyLead(
    this OrganizationServiceContext context,
    EntityReference leadId,
    bool createAccount,
    bool createContact,
    bool createOpportunity,
    EntityReference opportunityCurrencyId,
    EntityReference opportunityCustomerId,
    EntityReference sourceCampaignId,
    OptionSetValue status
)
public:
[ExtensionAttribute]
static EntityReferenceCollection^ QualifyLead(
    OrganizationServiceContext^ context,
    EntityReference^ leadId,
    bool createAccount,
    bool createContact,
    bool createOpportunity,
    EntityReference^ opportunityCurrencyId,
    EntityReference^ opportunityCustomerId,
    EntityReference^ sourceCampaignId,
    OptionSetValue^ status
)
static member QualifyLead : 
        context:OrganizationServiceContext *
        leadId:EntityReference *
        createAccount:bool *
        createContact:bool *
        createOpportunity:bool *
        opportunityCurrencyId:EntityReference *
        opportunityCustomerId:EntityReference *
        sourceCampaignId:EntityReference *
        status:OptionSetValue -> EntityReferenceCollection
<ExtensionAttribute>
Public Shared Function QualifyLead (
    context As OrganizationServiceContext,
    leadId As EntityReference,
    createAccount As Boolean,
    createContact As Boolean,
    createOpportunity As Boolean,
    opportunityCurrencyId As EntityReference,
    opportunityCustomerId As EntityReference,
    sourceCampaignId As EntityReference,
    status As OptionSetValue
) As EntityReferenceCollection

Parameters

Return Value

Type: Microsoft.Xrm.Sdk.EntityReferenceCollection

Returns EntityReferenceCollection.

Remarks

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