Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CrmAuthenticationToken token = new CrmAuthenticationToken();
- token.OrganizationName = config.AppSettings.Settings["CrmTargetOrganisation"].Value;
- token.AuthenticationType = 0;
- MetadataService service = new MetadataService();
- service.Credentials = System.Net.CredentialCache.DefaultCredentials;
- service.Url = config.AppSettings.Settings["CrmMetadataServiceUrl"].Value;
- service.CrmAuthenticationTokenValue = token;
- service.UnsafeAuthenticatedConnectionSharing = true;
Add Comment
Please, Sign In to add comment