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. [email protected] or 5C813AC0-7DC2-487E-A67F-8EBD5C3CADBB
- secret (user's password or appID's client secret)
Windows, macOS or Linux:
- git
- Visual Studio Code
- alternative. on Windows: VisualStudio 2019 Community
- .NET Core 5.0
- recommended VSCode extensions: