public static IOrganizationService
Service()
{
ClientCredentials Credentials = new ClientCredentials
();
Credentials.Windows.ClientCredential.UserName =
"
;
Credentials.Windows.ClientCredential.Password =
"
;
//This URL needs to be updated to match the servername and Organization for the environment.
Uri OrganizationUri = new Uri("http://
);
Uri HomeRealmUri = null
;
//OrganizationServiceProxy serviceProxy;
using (OrganizationServiceProxy serviceProxy = new OrganizationServiceProxy(OrganizationUri, HomeRealmUri, Credentials, null
))
{
IOrganizationService service = (IOrganizationService
)serviceProxy;
return
service;
}
}
No comments:
Post a Comment