Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powershell script failing while connecting with portal #319

Open
Psangram opened this issue Apr 11, 2022 · 0 comments
Open

Powershell script failing while connecting with portal #319

Psangram opened this issue Apr 11, 2022 · 0 comments

Comments

@Psangram
Copy link

Psangram commented Apr 11, 2022

Hi Wael,
We are getting below error while connecting to portal. We want to use client id & client secret in the connection string ,this works well when we are providing username & password.
"ExportCMData.ps1" this script is expecting username , password & we want to change this to client id /client secret.
Any Help is appreciated!!

output log file: 'C:\SE
TFS\Main365\SE.Crm\SE.Crm.PortalRecords\Microsoft.Xrm.Tooling.CrmConnector.Powershell-2022-04-11.log'
Get-CrmConnection : Failed to connect to CRM: Unable to login to Dynamics CRM, Error was :
clientCredentials.UserName.UserName or clientCredentials.Windows.ClientCredential.UserName MUST be populated!
clientCredentials.UserName.UserName or clientCredentials.Windows.ClientCredential.UserName MUST be populated!Unable to
Login to Dynamics CRM
Unable to Login to Dynamics CRM
At C:\SE TFS\Main365\Tools\LocalBuild\xrmciframework\ExportCMData.ps1:55 char:12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant