1.下载FMLab项目和导入FMTuroial项目
2.在开发机上安装FMDemo数据
3.创建登录系统测试账号
Development tools tutorial - Finance & Operations | Dynamics 365 | Microsoft Learn
队列管理示例应用程序的端到端方案 - Finance & Operations |动态 365 |Microsoft 学习
1.导入教程项目和事务数据
使用 Visual Studio 导入教程项目。教程项目包括您将用于完成本教程的工件。使用 Visual Studio 打开 FMTutorial 项目并加载本教程的数据。您将使用 FMTDataHelper 类加载队列管理教程的数据。如果这是您正在学习的第一个教程,请查看 Access Instances,并确保在处理本地 VM 时预置管理员用户。
- 从 https://github.com/Microsoft/FMLab 下载 Fleet Management 示例,将其保存到 C:\,然后解压缩。
- 在桌面上,双击 Visual Studio 快捷方式以打开开发环境。
- 在 Finance and operations 菜单上,单击 Import Project。
- 在 Import Project (导入项目) 窗口中,单击 Filename (文件名) 文本框旁边的省略号按钮。
- 在 Select the file to import (选择要导入的文件) 窗口中,浏览到 C:\FMLab,单击 FMTutorialDataModel.axpp,然后单击 Open (打开)。
- 在 Project file location 文本框中,输入 C:\FMLab。
- 选择 Overwrite Elements 选项和 Current solution 单选按钮。下图显示了已完成的 Import Project 对话框。
- 单击 OK。
- 在“解决方案资源管理器”中,展开“类”,然后在 FMTutorial 项目下,右键单击“FMTDataHelper”,然后单击“设置为启动对象”。
- 在 Build (生成) 菜单上,单击 Rebuild Solution (重新生成解决方案)。使用 rebuild 来确保构建项目中的所有文件,而不管时间戳如何。您可以在 Output (输出) 窗口中查看构建进度。
- 生成完成后,按 Ctrl+F5 运行项目。浏览器将打开并运行导入数据的类。
打开 FMTutorial 项目
使用 Visual Studio 打开 FMTutorial 项目。如果已打开 Visual Studio 并已加载 FMTutorial 项目,则可以继续执行下一部分。
- 如果开发环境尚未打开,请在桌面上双击 Visual Studio 快捷方式以打开开发环境。
- 在 File (文件) 菜单上,单击 Open > Project/Solution(打开项目/解决方案)。
- 在“打开项目”对话框中,浏览到 C:\FmLab\FMTutorial,选择 FMTutorial 解决方案,然后单击“打开”。
- FMTutorial 项目将显示在“解决方案资源管理器”中。
来自 <Build the Customer form - Finance & Operations | Dynamics 365 | Microsoft Learn>
2.在开发机上安装FMDemo数据
Installing the demo data
To work with the sample, you must install the provided demo data.
- In the virtual machine (VM), open Microsoft Edge and navigate to the application's base URL.
- Sign in.
- On the dashboard, open the navigation pane and go to Fleet Management > Setup> Fleet setup.
- On the Data setup tab, select Create.
- If you're prompted to reload the demo data, click Yes.
- When the data is finished loading, select Close.
3.创建登录系统测试账号
Secure access using the role-based security system
In this tutorial, you’ll access the system as a user that has been assigned a different security role. This tutorial requires that you have created at least one additional end user.
- On the dashboard, in the System administration section, click Users and then Users.
- On the Action Pane, click New.
- Enter the following field information.
展开表
Property | Value |
User ID | Eight character unique ID |
User name | The first name of the user |
Provider | urn:Federation:MicrosoftOnline |
| Use an email alias that you can login with for testing. |
Company | DAT |
Enabled | Verify that this slider is set to Yes. |
- Click Assign Roles.
- Select Fleet management branch manager, and then click OK.
- Click the user name on the top right, and then click Sign Out. You’ll be redirected back to the sign-n page
- Sign in using the credentials for the user who you assigned the security role to in the steps above.
- Notice that in the dashboard, this user can see only items that are related to the branch manager security role. Items that system administrators can see are now hidden.
- Click Sign out to sign out of the session.