Connecting to MFA enabled Dynamics 365 V9.X CRM instance through C# or console App
Hi I was trying to connect my mfa enabled CRM to my console App but was unable to do so after doing lot of search got many connection ways like by ClientID client Secret blabla.... but they use Rest Apis and our Iorganization service code which is used in plugin cannot be used that way so finally got the solution for connecting it To Connect MFA Enabled Dynamics CRM with C# you just need to use App Password instead of your Password remaining every thing remains same as it was string connectionString = GetServiceConfigurationfromAppCOnfig(); ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; CrmServiceClient conn = new Microsoft.Xrm.Tooling.Connector.CrmServiceClient(connectionString); _orgService = (IOrganizationService)conn.OrganizationWebProxyClient != null ? (IOrganizationService)conn.OrganizationWebProxyClient : (IOrganizationService)conn.OrganizationServiceProxy; WhoAmIR