
Announcements
Dear,
I am trying to create a script that can download data from dataverse.
I have created an AD Application Registration and gave it CDS (dataverse) rights.
I then run the following command:
pac auth create --url https://xxxxxxx.crm4.dynamics.com/ --name myenvironment --applicationId xxxxx-xxx-xx-xx --clientSecret xxxxxxxxxxxxxxx --tenant xxxx-xx-xxx-xxxx
returning:
'xxx-xxx-xxx' authenticated successfully.
Validating connection...
Connected to...Unable to validate connection to default environment
Authentication profile created
* DATAVERSE myenvironment https://xxxxxxxxxxxxxxxxxxxxx.crm4.dynamics.com/ : xxxx-xxx-xxxx-xxxx Public
the following command, to export the data:
pac data export --environment myenvironment --schemaFile .\myschema.xml --dataFile mydata.xml
returns the following error:
Looking for environment 'myenvironment'
Microsoft PowerPlatform CLI
Version: 1.20.3+ga66a744
Error: Organization listing requires a User auth profile, not an Application auth profile
Any idea what is the solution?
Best regards,
Koen