OrganizationServiceContextExtensions.CalculateActualValueOpportunity Method (OrganizationServiceContext, Guid)
Applies To: Dynamics CRM 2013
Calculates the value of an opportunity that is in the "Won" state. (Developer Extensions)
Namespace: Microsoft.Xrm.Client.Messages
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Syntax
public static decimal CalculateActualValueOpportunity(
this OrganizationServiceContext context,
Guid opportunityId
)
public:
[ExtensionAttribute]
static Decimal CalculateActualValueOpportunity(
OrganizationServiceContext^ context,
Guid opportunityId
)
static member CalculateActualValueOpportunity :
context:OrganizationServiceContext *
opportunityId:Guid -> decimal
<ExtensionAttribute>
Public Shared Function CalculateActualValueOpportunity (
context As OrganizationServiceContext,
opportunityId As Guid
) As Decimal
Parameters
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
opportunityId
Type: System.GuidThe ID of the opportunity. Required.
Return Value
Type: System.Decimal
Returns aDecimal, the actual value of an opportunity.
Remarks
This is a method wrapper for the CalculateActualValueOpportunityRequest and CalculateActualValueOpportunityResponse 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