PowerPlatform Dataverse simple client app
Small app to connect to Dataverse environment instance and call WhoAmI, using PowerPlatform.Dataverse.ServiceClient library, available as nuget package.
Showcases how to initialize connection and handle errors.
Console app expects 3 parameters in order (sorry, no fancy cmdline args processing here):
- environment URL, e.g. https://myenv.crm.dynamics.com
- user name or appID, e.g. me@myenv.onmicrosoft.com or 5C813AC0-7DC2-487E-A67F-8EBD5C3CADBB
- secret (user's password or appID's client secret)
Setting Up Local Dev Environment
Windows, macOS or Linux:
- git
- Visual Studio Code
- alternative. on Windows: VisualStudio 2020 Community
- .NET Core 6.0
- recommended VSCode extensions: