End-to-end scenario for the Fleet Management sample application
This tutorial walks you through an end-to-end scenario that the Fleet Management sample application is designed to support.
In this tutorial, you’ll take a tour of the Fleet Management sample. The overviews in this tutorial provide some background knowledge and contextual info. You’ll walk through an end-to-end scenario that this sample application is designed to support. This is information that you should have before proceeding to other tutorials.
- You must first be provisioned as an end user before you start this tutorial.
- This tutorial mainly explores the FleetManagement Migrated project and the application that it builds.
Installing the demo data
To work with the sample, you must install the provided demo data.
In the VM, open Internet Explorer and navigate to the application's base URL.
On the dashboard, open the navigation pane and go to Fleet Management > Setup > Fleet setup.
Click Setup Demo Data.
If you're prompted to reload the demo data, click Yes.
When the data is finished loading, click Close.
Use the Fleet Management application to rent a vehicle
Keep in mind that you’re working with the migrated app in this section. The forms that you see are directly ported from the Microsoft Dynamics AX 2012 version of the sample. Although they have been modified and restyled, they have not been reimagined.
Open Internet Explorer, and sign into Microsoft Dynamics 365 for Finance and Operations.
To return to the Dashboard, click the Microsoft Dynamics logo in the top-left corner of the page. The dashboard is the main working hub. You can see the various tiles, organized into sections, which lead to parts of the application. The dashboard is designed for horizontal scrolling, which is an optimization for working well on modern devices. The button to the right of the dashboard shows the navigation bar.
From the Dashboard, open the navigation bar and go to Fleet Management > Common > Customers > Customer.
On the Action Pane, click the Microsoft Office logo, then click on Customers under **Export to Excel **to send the information in the grid view to a Microsoft Excel spreadsheet. This operation can take some time.
When prompted, click Open to view the data in Excel.
To switch to the Details view, click on a value in the First Name column.
Click Show list to show the navigation list.
Click the various customer names in the navigation list in the side pane, and watch as the detailed information about each customer changes.
Select the customer Phil Spencer. You'll notice the charts update to indicate Phil's previous rental preferences.
Hover over the pie slices to see the details. You'll notice that, in the past, Phil has often rented red SUVs. This might give the sales clerk a cue to look for available red SUVs the next time Phil makes a reservation. This is a simple example of proactively providing insights.
Add yourself as a customer.
Create a new rental.
- On the navigation bar, go to Fleet management > Rentals > Rental.
- In the Rental form, on the Action Pane, click New.
- In the Vehicle field, select a vehicle.
- In the Customer field, select your name.
- In the To field, pick an end date.
- In the Start field, enter “35,000”.
- In the Pickup field, enter Full.
- When you are done, click Save.
Start the rental period.
- On the Action Pane, click Start rental.
- In the dialog box, verify the values in the fields and click OK.
Use Fleet Management to run a workflow
Click the Dynamics icon to return to the dashboard.
Find the Reservation Management tile and click on it to open the Reservation Management workspace.
Click Current rentals.
On the Rentals form, click the ID of your rental.
On the Details view of the Rentals form, on the Action Pane, click Complete rental.
In the New mileage field, enter 40,000, and then click OK.
Click the Dynamics icon to return to the dashboard.
On the navigation bar, navigate to Fleet management > Vehicles > Vehicle Maintenance.
In the Vehicle Maintenance form, the Status field shows that your rental is awaiting examination by the service department. Note: You might need to wait up to two minutes for the batch framework to change the status of the vehicle. On the Action Pane, click Refresh periodically to update the view, until you see the status change. Keep in mind that a different person usually handles each step in a workflow; the brief delay introduced by the batch framework is not an issue in a real-world application.
Select the row that contains your rental. On the Action Pane, click Workflow, and then click Examination complete. Note: You may need to refresh the page to get the full set of options under Workflow.
Enter a comment, and then click Examination complete.
You might again need to wait up to two minutes for the batch framework to process the change. On the Action Pane, click Refresh periodically, until you see the Status field change. Notice that the vehicle now has a status of Awaiting Service.
Optionally, you can continue to repeat these workflow steps to take the vehicle through the service and cleaning phases. After cleaning is completed, the final status is Done.
Click Workflow, and then click View history. The Workflow history form provides information about the vehicle workflow.
To view the setup behind the workflow
On the dashboard, navigate to Fleet Management > Setup > Workflow setup. The Workflow Setup page shows the list of workflows.
In the Workflow ID column, click the ID of your vehicle maintenance workflow.
Accept any prompts that ask you for permission to run code. After a short wait, the workflow editor opens. Note: This step works on the one-box environment, but not in the cloud. You can view the workflow diagram in the workflow editor. The following illustration shows the workflow.
When you are done, close the Workflow window.
Create a new KPI definition
The web client enables users who have appropriate permissions to modify KPI definitions that have been modeled and deployed by developers. Users also have the ability to create new KPI definitions in the client. In this walkthrough, you create a new KPI definition in the client.
Open the Reservation Management workspace. On the navigation bar, go to** Fleet Management > Workspaces > Reservation Management**.
Notice the Total revenue KPI tile shown on the bottom left of the workspace. Click the Total Revenue KPI tile. Details of the total revenue KPI tile along with charts indicating top and bottom contributors to revenue will be shown on screen.
Next, you will define a new KPI to monitor the number of rentals.
On the Action Pane, click New. The New KPI dialog will open.
Enter following values for the new KPI definition.
Field Value Name Number of Rentals Measurement FMAggregateMeasurements Measure Group FmRentalCharges Measure NoRentals Goal is Fixed Value Goal Value 30
Note: If the Save button isn’t visible in the New KPI dialog box, use a higher screen resolution so that you can see the entire dialog. You can see the KPI details page that contains details about the KPI that you created. You can make changes in the Details section. You will modify the default threshold values so that if the value is less than 90% of the goal, the KPI will show red and if the value is over 110% of the goal, the KPI will show green.
Scroll to the right of the screen, and modify the values in the thresholds fields as follows.
Property Value Red if less than 90 Green if more than 110
In the application bar, click **Save
Click the form caption to return to the grid view.
Click the Name column header, change the filter operator to contains, and update the filter field value to Number. You will see the new KPI is available in the list.
Launch an operational report
In this tutorial, you’ll launch an operational report that contains a list of customers who are currently renting vehicles.
Use the dashboard to open the Reservation management workspace.
Click the Customers report tile. Do not enter anything in the parameter for Customer group.
Click OK to close the dialog box. The report will be rendered and show the list of customers. The report may take a minute to render.
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.
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 Network domain urn:Federation:MicrosoftOnline Alias firstname.lastname@example.org (Replace with the organization account email address.) Default 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 his security role. Items that system administrators can see are now hidden.
Click Sign out to sign out of the session.