OrganizationServiceContextExtensions.QualifyLead Method (OrganizationServiceContext, EntityReference, Boolean, Boolean, Boolean, EntityReference, EntityReference, EntityReference, OptionSetValue)
Applies To: Dynamics CRM 2013
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
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
- leadId
Type: Microsoft.Xrm.Sdk.EntityReference
- createAccount
Type: System.Boolean
- createContact
Type: System.Boolean
- createOpportunity
Type: System.Boolean
- opportunityCurrencyId
Type: Microsoft.Xrm.Sdk.EntityReference
- opportunityCustomerId
Type: Microsoft.Xrm.Sdk.EntityReference
- sourceCampaignId
Type: Microsoft.Xrm.Sdk.EntityReference
- status
Type: Microsoft.Xrm.Sdk.OptionSetValue
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 2013
Return to top