Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidjenni/d365-orgservicesample
Small Dynamics365 app to connect to environment instance and call WhoAmI, using CrmServiceClient from the CRM SDK
https://github.com/davidjenni/d365-orgservicesample
Last synced: 6 days ago
JSON representation
Small Dynamics365 app to connect to environment instance and call WhoAmI, using CrmServiceClient from the CRM SDK
- Host: GitHub
- URL: https://github.com/davidjenni/d365-orgservicesample
- Owner: davidjenni
- License: mit
- Created: 2020-04-29T23:15:10.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T02:17:48.000Z (almost 2 years ago)
- Last Synced: 2024-10-18T05:57:44.188Z (about 1 month ago)
- Language: C#
- Size: 154 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dynamics365 / PowerPlatform simplest client app
Small Dynamics365 app to connect to environment instance and call WhoAmI, using CrmServiceClient from the CRM SDK.
Showcases how to initialize connection and handle errors.
Console app expects 3 parameters in order (sorry, no fancy cmdline args processing here):
1. environment URL, e.g. https://myenv.crm.dynamics.com
2. user name or appID, e.g. [email protected] or 5C813AC0-7DC2-487E-A67F-8EBD5C3CADBB
3. secret (user's password or appID's client secret)## Use this console app to debug CI/CD connectivity
This repo also contains a Azure DevOps pipeline that will build and run the console app on the AzDevOps build agent.
See the [Create AzDevOps Pipeline document](doc/CreateAzDO-pipeline.md) in this repo for how to setup.## Prereqs:
- [VisualStudio 2019 Community](https://visualstudio.microsoft.com/downloads/)
- [.NET Framework 4.6.2 Developer Pack](https://dotnet.microsoft.com/download/dotnet-framework/net462); all of Dynamics365 still has a dependency on .NET 4.6.2 which unfortunately is not a default target for VS2019 (check if your VS already has it: open Properties of a loaded .csproj project, click dropdown box for target framework version)## References
- [Build Windows client app using XRM tools](https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/xrm-tooling/build-windows-client-applications-xrm-tools?view=dynamics-xrmtooling-ce-9)
- [CrmServiceClient](https://docs.microsoft.com/en-us/dotnet/api/microsoft.xrm.tooling.connector.crmserviceclient?view=dynamics-xrmtooling-ce-9)
- [WhoAmI requuest](https://docs.microsoft.com/en-us/dotnet/api/microsoft.crm.sdk.messages.whoamirequest?view=dynamics-general-ce-9)
- [WhoAmI webAPI](https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/whoami?view=dynamics-ce-odata-9)