It is quite easy to create an account in MS CRM using its interface but, if there is a need, it can also be achieved programmatically using its web services.
This is helpful in situations where one doesn’t have the access to the MS CRM Server. But one needs to add the following web service URL to the application.
Dim MFSCrm As New CrmSdk.CrmService
MFSCrm.Url = GetCrmServiceForOrganization(OrgName)'Organization name.
Dim MFSToken As New CrmSdk.CrmAuthenticationToken
MFSToken.AuthenticationType = 0
MFSToken.OrganizationName = OrgName
MFSCrm.CrmAuthenticationTokenValue = MFSToken
Dim sn As New System.Net.NetworkCredential
sn.UserName = "***" 'CRM Server User Name
sn.Password = "*********" 'CRM Server Password
sn.Domain = "*******" 'CRM Server Domain name
MFSCrm.Credentials = sn
Dim newAccountId As Guid
Dim newAccount As New CrmSdk.account
newAccount.name = AccName ' Name of the account to be created
newAccountId = MFSCrm.Create(newAccount)