CRMOpportunity Class
The CRMOpportunity class contains methods that you can use to manage opportunities.
There are no properties for this class.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Web.Services.Protocols.WebClientProtocol
System.Web.Services.Protocols.HttpWebClientProtocol
System.Web.Services.Protocols.SoapHttpClientProtocol
CRMOpportunity
[Visual Basic .NET]
Public Class CRMOpportunity
Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
[C#]
public class CRMOpportunity : System.Web.Services.Protocols.SoapHttpClientProtocol
[C++]
public __gc class CRMOpportunity: public System.Web.Services.Protocols.SoapHttpClientProtocol
The CRMOpportunity class exposes the following methods.
Method | Description |
Assign | Assigns an opportunity to a new security principal (user or team). |
BulkRetrieve | Retrieves multiple opportunities. |
CalculateActualValue | Calculates the actual value of the opportunity. |
Create | Creates a new opportunity. |
CreateAndRetrieve | Creates a new opportunity and then retrieves it. |
Delete | Deletes an opportunity. |
GrantAccess | Grants a security principal access to an opportunity. |
Lose | Sets the state of an opportunity to Lost. |
MakePrivate | Makes an opportunity private. |
MakePublic | Makes an opportunity public. |
ModifyAccess | Replaces the access rights on the opportunity for the specified security principal. |
Open | Sets the state of the opportunity to Open. |
RemoveAssociation | Removes the association between an object (account, competitor, or contact) and an opportunity. |
Retrieve | Retrieves an existing opportunity. |
RetrieveByObject | Retrieves all opportunities that are associated with an object (account or contact). |
RetrieveByPrincipal | Retrieves all of the opportunities that are owned by the specified security principal. |
RetrievePrincipalAccess | Retrieves the access a security principal has for the specified opportunity. |
RetrieveSharedPrincipals | Retrieves all of the security principals (users or teams) that have access to an opportunity. |
RetrieveSharedPrincipalsAndAccess | Retrieves all of the security principals (users or teams) that have access to an opportunity and their access rights for that opportunity. |
RetrieveUntouchedOpportunities | [Not supported in this release.] |
RevokeAccess | Revokes a the access a security principal has for an opportunity. |
SetAssociation | Creates an association between an object (account, competitor, or contact) and an opportunity. |
Update | Updates an existing opportunity. |
UpdateAndRetrieve | Updates an existing opportunity and then retrieves it. |
ValidForClose | Checks whether it is valid to close the opportunity. |
Win | Sets the state of an opportunity to Won. |
Requirements
Namespace: Microsoft.Crm.Platform.Proxy
Assembly: Microsoft.Crm.Platform.Proxy.dll
See Also