Share via


CRMAccount Class

The CRMAccount class contains methods that you can use to manage accounts.

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
                  CRMAccount

[Visual Basic .NET]
Public Class CRMAccount
   Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
[C#]
public class CRMAccount : System.Web.Services.Protocols.SoapHttpClientProtocol
[C++]
public __gc class CRMAccount: public System.Web.Services.Protocols.SoapHttpClientProtocol

The CRMAccount class exposes the following methods.

Method Description
Activate Sets the state of an account to Active.
AddSubAccount Adds a sub-account to the specified account.
AddSubContact Adds a sub-contact to the specified account.
Assign Assigns the specified account to another security principal.
BulkRetrieve Retrieves multiple accounts from the database.
Create Creates a new account.
CreateAndRetrieve Creates a new account and then retrieves it.
Deactivate Sets the state of an account to Inactive.
Delete Deletes an account and its child objects.
GetPrimaryContact Retrieves the primary contact for the specified account.
GrantAccess Grants the specified security principal access to an account.
MakePrivate Makes an account private.
MakePublic Makes an account public.
ModifyAccess Replaces the access rights on the account for the specified security principal.
RemoveSubAccount Removes a sub-account from the specified account.
RemoveSubContact Removes a sub-contact from the specified account.
Retrieve Retrieves the account information for the specified account.
RetrieveAllLeads Retrieves all leads that are children of the account or children of the child contacts of the account.
RetrieveAllOpportunities Retrieves all opportunities that are children of the account or children of the child contacts of the account.
RetrieveByObject Retrieves accounts associated with a particular object (lead or opportunity).
RetrieveByPrincipal Retrieves all the accounts owned by the specified security principal.
RetrievePrincipalAccess Retrieves the access a security principal has to the specified account.
RetrieveSharedPrincipals Returns a list of security principals with whom this account is shared.
RetrieveSharedPrincipalsAndAccess Retrieves all the security principals (users or teams) that have access to the specified account, along with what access they have.
RetrieveSubAccounts Retrieves the sub-accounts of the specified account.
RetrieveSubContacts Retrieves the sub-contacts of the specified account.
RetrieveSubLeads Retrieves the child leads of the specified account.
RetrieveSubOpportunities Retrieves the child opportunities of the specified account.
RevokeAccess Revokes access of a security principal to the specified account.
SetPrimaryContact Sets the primary contact for the specified account.
Update Updates the specified account record.
UpdateAndRetrieve Updates the specified account record, and then retrieves it.

Requirements

Namespace: Microsoft.Crm.Platform.Proxy

Assembly: Microsoft.Crm.Platform.Proxy.dll

See Also

© 2005 Microsoft Corporation. All rights reserved.