Sample: Quick start for XRM Tooling API
This C# .NET code sample shows how to connect to a Microsoft Dataverse environment using the WPF based XRM Tooling login control. Next, the sample performs create, update, retrieve, and delete operations on a Dataverse table. For more information about XRM Tooling, see Build windows client applications using the XRM tools.
Requirements
- Visual Studio 2019 or later
- Dataverse test environment and valid user logon credentials
How to run the sample
- Clone the PowerApps-Samples repository so that you have a copy locally.
- Open the
dataverse\Xrm Tooling\Quick start for XRM Tooling\C#\QuickStartXRMToolingWPFClient.sln
file in Visual Studio. - Press F5 to compile and run the program.
You will be prompted for environment logon information.
Demonstrates
- The sample code provides a common login control with built-in support for authentication and credential caching and reuse. For more information about the common login control see Use the XRM Tooling common login control.
- After connecting to Dataverse, the sample performs create, update, retrieve, and delete operations on an account table.
- Stores user credentials in a configuration file (
Default_QuickStartXRMToolingWPFClient.exe.config
) in thec:\Users\
<username>
\AppData\Roaming\Microsoft\QuickStartXRMToolingWPFClient
folder when the sample is run for the first time, and thereafter prompts the user to either use the stored or specify new credentials at runtime to sign in to Dataverse. - Generates the following log files, if any issue occurs, to aid troubleshooting:
- Login_ErrorLog.log: To report sign-in errors. This file is available at
C:\Users\
<username>
\AppData\Roaming\Microsoft\QuickStartXRMToolingWPFClient
. - QuickStartXRMToolingWPFClient.log: To report operational errors. This file is available at the same location as the executable, that is in the debug folder of your Visual Studio project.
- Login_ErrorLog.log: To report sign-in errors. This file is available at
See also
Use the XRM Tooling common login control
Build Windows client applications using the XRM tools
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기