OrganizationServiceContextExtensions.LoseOpportunity Method (OrganizationServiceContext, Entity, OptionSetValue)
Applies To: Dynamics CRM 2015
Sets the state of an opportunity to Lost. (Developer Extensions)
Namespace: Microsoft.Xrm.Client.Messages
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static void LoseOpportunity(
this OrganizationServiceContext context,
Entity opportunityClose,
OptionSetValue status
)
public:
[ExtensionAttribute]
static void LoseOpportunity(
OrganizationServiceContext^ context,
Entity^ opportunityClose,
OptionSetValue^ status
)
static member LoseOpportunity :
context:OrganizationServiceContext *
opportunityClose:Entity *
status:OptionSetValue -> unit
<ExtensionAttribute>
Public Shared Sub LoseOpportunity (
context As OrganizationServiceContext,
opportunityClose As Entity,
status As OptionSetValue
)
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
- opportunityClose
Type: Microsoft.Xrm.Sdk.Entity
- status
Type: Microsoft.Xrm.Sdk.OptionSetValue
Remarks
This is a method wrapper for the LoseOpportunityRequest and LoseOpportunityResponse classes. See the documentation in the Request class for more information about this message.
See Also
LoseOpportunity Overload
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Return to top
© 2017 Microsoft. All rights reserved. Copyright