6. September 2011 15:52
7. September 2011 07:21
public string getAssociatedDatabase(string organizationEntity)
{
CrmDeploymentService oService = new CrmDeploymentService();
oService.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
RetrieveAllRequest oReq = new RetrieveAllRequest();
oReq.EntityName = EntityName.Organization;
RetrieveAllResponse resp = (RetrieveAllResponse)oService.Execute(oReq);
string strDataBaseName = string.Empty;
foreach (Organization item in resp.Entities)
{
if (item.FriendlyName.Equals(organizationEntity))
{
strDataBaseName = item.DatabaseName;
break;
}
}
return strDataBaseName;
}
9. September 2011 13:47
9. September 2011 17:05
6. Dezember 2011 09:55