Lab - Work with Microsoft Office integration

Completed

Read this first - before you start the lab!

Important

For this lab, you CANNOT sign in with your own credentials. Use the following steps to sign in to your lab environment with the correct credentials.

  1. Ensure that you are signed in to Microsoft Learn.

  2. Select Launch VM mode or Sign in to launch VM mode in this unit.

  3. In the Resources tab on the lab side bar, select the T icon next to Password in the MININT box, to have the administrator password for the Virtual Machine entered for you.

    Screenshot of the administrator password.

  4. Select Enter.

  5. You'll see a PowerShell window and a Windows Command window appear. After about two to three minutes, they'll close and Microsoft Edge will open automatically. Wait for it to navigate to the Sign in page for Finance and Operations.

  6. On the Microsoft Sign in page in Finance and Operations, insert your mouse cursor into the Username field.

  7. On the Resources tab of the lab side bar, below the Azure portal heading, select the T icon next to Username, then press Enter.

    Screenshot of the Username field and the Sign in dialog box that appears.

  8. Your mouse cursor will now be in the Password page.

  9. On the Resources tab of the lab side bar, below the Azure portal heading, select the T icon next to select Password, then press Enter.

    Screenshot of the Password field the Enter password dialog box that appears.

  10. Don't stay signed in, or store the password on the virtual machine.

  11. To see the lab instructions, select the Instructions tab on the lab side bar.

You can now begin your work on this lab.

Scenario - Use and build office integration in Finance and Operations

You want to use and build office integration in Finance and Operations.

Load the Fleet management data set

  1. In the company USMF, open Fleet Management > Setup > Fleet setup.
  2. Select Create.
  3. When the sample data is created, select Close. A pop up message Sample data created appears.
  4. Close the pop up message.

Static Export to Excel

  1. Go to Fleet Management > Customers > Customer.
  2. Select the Open in Microsoft Office icon in the top-right of the page, next to the Power Apps icon.
  3. Select Customers in the Export to Excel section.
  4. Download and open the workbook that is generated. Note that the columns in the workbook match the columns in the grid.
  5. Close the Excel file.
  6. In Finance and Operations, select the first two rows by selecting in the left edge of the row, below the Select all check box in the Customer page.
  7. Right-click the grid header to open the shortcut menu. Note that both Export all rows and Export marked rows are available as commands.
  8. Select Export marked rows.
  9. Download and open the workbook that is generated. Note that the columns in the workbook match the columns in the grid, and that the rows that are exported match the rows that you selected.
  10. Close the Excel file.

Generated Open in Excel

  1. From the Customer page in Finance and Operations, select the Open in Microsoft Office icon.
  2. Select Fleet Management Customers (unfiltered) in the Open in Excel section.
  3. Download and open the workbook that is generated. This workbook contains the Excel Data Connector App, a binding to the Fleet Management Customer entity, and a pointer to the server that the workbook was generated from.
  4. Select Enable Editing in the excel file.
  5. Select Trust this add-in, that redirects to a Sign-in page.
  6. Use the credentials provided in the Azure Portal section of the Resources tab in the right pane of the online lab environment.
  7. In the Customer page in Finance and Operations, select Edit (or press F2) and change the email address of one of the customers.
  8. Select Save.
  9. In Excel, in the Data Connector app, select Refresh. Note that the new email address is shown in Excel.
  10. In Excel, change the email address of one of the customers.
  11. In the Data Connector app in Excel, select Publish.
  12. In Finance and Operations, select Refresh in the upper right of the page (or press Shift+F5). Note that the new email address is shown on the Customer page.
  13. In Excel, select the Open options dialog (gear) button in the upper-right corner of the Data Connector app. You can use the dialog box that appears to adjust the settings in the current workbook. Note that the Server URL value matches the start of the URL that is shown in an internet browser. Also note that the data refresh and data publish operations are listed in the Data Connector section.
  14. Select Cancel to close the Options dialog box.
  15. Select the Open message center (flag) button in the lower-right corner of the Excel app. The message center dialog box that appears provides information about what is occurring in the Excel app.
  16. Select Done. Do not close Excel.

Add and remove table columns from an existing table data source in the Excel app

  1. In the Data Connector app in Excel, select Design. A list of table and field data sources appears.
  2. Select the Edit (pencil) button next to the existing table data source. The data source details are shown.
  3. Remove fields. In the Selected fields list, double-click a field. Alternatively, select a field, and then select Remove. To select multiple fields, hold down the Ctrl key while you select the fields. To select all fields, press Ctrl+A.
  4. Add fields. In the Available fields list, double-click a field. Alternatively, select a field, and then select Add. To select multiple fields, hold down the Ctrl key while you select the fields. To select all fields, press Ctrl+A.
  5. Change the field order. In the Selected list, select a field, and then select Up or Down.
  6. Change a field label. In the Selected list, select a field, and then select the Column label field below the list. You can change the label to either a static string or a label identifier that will be translated to the active language (for example '@SYS129977').
  7. To apply the changes that you made to data source fields, select Update to return to the data source list.
  8. Select Done.
  9. Select Refresh to make sure that any new fields are filled with data.
  10. Select Yes in the Confirm Refresh window that appears.

Scenario - Use the Excel workbook designer

You need to use the Excel workbook designer page to create an Open in Excel experience for the company USMF.

  1. Go to Common > Common > Office integration > Excel workbook designer.
  2. Select the FleetCustomer entity (you can use the Search field on the left to find it).
  3. Add all fields in the list of available fields to the list of selected fields, by using the Add all button.
  4. Select Create workbook.
  5. Select Download and then open the workbook that is generated. This workbook contains the Excel Data Connector App, a binding to the Fleet Management Customer entity, and a pointer to the server that the workbook was generated from.
  6. In the Microsoft Edge security dialog box, select Allow.
  7. Select Enable Editing in the excel file.
  8. If a pop up shows, you must enable the Excel Data Connector App to load. Select Trust this add-in in NEW OFFICE ADD-IN window. If the pop-up does not appear, skip to step 11.
  9. You will then be redirected to a Sign-in page.
  10. Use the same credentials you used on the Microsoft Sign-in page to log in to Finance and Operations. You can find them in the Resources tab in the right pane.
  11. After successful sign-in, customer data is read from the OData service on the server and added to the table.
  12. Insert a blank row above the table and enter Fleet Customers as the title.
  13. Rename the worksheet FleetCustomers by saving it on the desktop with the new name.

Rearrange some of the fields in the table.

  1. Select Design to open the designer experience.
  2. Next to the Fleet Management Customers data source are buttons for editing and deleting the data source. Select Edit to view the field list. You many need to enlarge the Data Connector to see all sections.
  3. Select fields from the Selected fields section and us the Up and Down buttons. Set the sequence for the first three fields to FirstName, LastName, and DriverLicense.
  4. Select Update. Note that the field order in the Excel sheet is changed.
  5. Select Done.
  6. Select the **Open options dialog ** (gear) button in the Data Connector.
  7. Select Clear binding data in the Data Connector section, so that the workbook contains no bound data.
  8. Select OK.
  9. Save the workbook as FleetCustomersBasic.xlsx on the desktop.
  10. In Finance and Operations, go to Common > Common > Office integration > Document templates.
  11. Select New.
  12. Browse to the FleetCustomersBasic.xlsx file that you just saved.
  13. Select Open and then OK. The template is added as a line in the Document templates page.
  14. In the FleetCustomersBasic row, change the Template display name value to Fleet Customers Basic.
  15. Select Save.
  16. Close the Document templates page.
  17. Go to Fleet Management > Customers > Customer.
  18. Note that Fleet Customers Basic is now an option in the Open in Excel section, now select it.
  19. Select Download, and then Open.
  20. Select Allow in the Microsoft Edge security dialog box, to open the workbook that is generated, if it is prompted.
  21. Select Enable Editing in the excel file.

You can also try to use the designer experience in the Excel add-in to add another data source to another worksheet.

Close the lab environment

  1. Select Done in the Instructions pane in the lab side bar.
  2. In the Lab is complete window, select Continue, and then select Leave to return to the next unit in the module.