Task 2: Create a macro with Run Excel Import action

In this task, you'll create a macro that includes the Run Excel Import action. You'll configure the action to prompt for the source Excel file, target the correct DDM file and identify the tables that are populated by this action.

First, you'll create a new project that contains the macro.

  1. Access Macros on the Supply Chain landing page.

  2. In the Layout Designer, click New..., then select Project.

  3. Optionally, edit the project Name and click OK.

Next, you'll add a macro to the project.

  1. With the project selected, click New..., then select Macro.

  2. Optionally, edit the macro Name and click OK.

To complete this task, you will add the Run Excel Import action to the macro and configure it with the DDM and target tables. Since the action allows the user to select an Excel file, you will include a prompt.

  1. With the macro selected, expand the Technology action section.

  2. Drag and drop the Run Excel Import action to the macro board.

  3. In the Excel Import action, click the Configure tab and enter text for the Prompt, such as "Please select your Excel file."

  4. In the Connection Name field, select your DDM.

  5. Click the dropdown list in Tables.

  6. Select the following tables and click OK:

    • locations_dimension (Location)

    • orders_full (Order)

    • product_dimension (Product)

  7. Click OK to save the action.

  8. Create a link from the Start button to the Run Excel Import action.

  9. Click Save at the top of the Layout Designer.

Your macro is now complete.

Next steps

Task 3: Upload data to the DDM