Share via


OrganizationServiceContextExtensions.CalculateActualValueOpportunity Method (OrganizationServiceContext, Guid)

 

Applies To: Dynamics CRM 2015

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

  • opportunityId
    Type: System.Guid

    The 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 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright