Lab - Create a purchase requisition workflow

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. Microsoft Edge will open. 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, place 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. Select Accept in the Permissions requested page.

    Screenshot of the Permissions requested page.

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

You can now begin your work on this lab.

Scenario

The finance and operations module that you're working in determines the types of workflow that you can create. In this lab, you will create a purchase requisition workflow. Before a purchase requisition can be submitted for review, you need to configure the workflow.

Create and set up workflows

  1. In the company USMF, go to Procurement and sourcing > Setup > Procurement and sourcing workflows.
  2. On the list page that appears, on the Action Pane, select New.
  3. On the Create workflow page, select the Purchase requisition line review.
  4. For the first time, the browser will show a dialog box to open the Microsoft.Dynamics.AX.Framework.WorkflowEditorHost page. Select Open.
  5. In the Do you want to run this application? dialog box, select Run. It takes a few minutes for the workflow editor to be downloaded. When it has finished the download, it automatically opens the Sign in dialog box.
  6. Enter your credentials and password (found in the Resources tab on the lab side bar, in the Azure portal section)
  7. The workflow editor appears (this can take a couple of minutes and may open behind the browser window).

Drag workflow elements onto the canvas

The Workflow elements area of the workflow editor contains the elements that you can add to your workflow.

  1. To add elements to the workflow, drag Review purchase requisition lines and Approve purchase requisition lines onto the canvas.
  2. Connect Start to Review purchase requisition lines. To connect one workflow element to another, hold the pointer over an element until connection points appear (small boxes around the edges of the elements). Select a connection point and drag it to another element. Be sure to connect all the elements.
  3. Connect Review purchase requisition lines to Approve purchase requisition lines.
  4. Connect Approve purchase requisition lines to End.

Configure workflow properties

  1. In the workflow editor canvas, select Review purchase requisition lines and, from the Action Pane, select Properties to open the Properties page.

  2. Enter a value in the Name field or accept the default.

  3. Enter a value in the Work item subject field, for example Work item test. Alternatively, you can also include a place holder and concatenate the text with the place holder.

  4. Enter a value in the Work item instructions field, for example "Review this purchase requisition".

  5. Select Assignment on the left section.

  6. In the Assignment type tab select User.

  7. Select the User tab, and select a user, for example ALICIA, and add it to the Selected users section by using the arrow.

  8. Select Close. The workflow editor may hide behind the browser window, if so – then just select it from the Windows task bar to open it.

  9. On the pane at the bottom of the page, you will have four errors or warnings. Select each one.

    • The first will be a warning, noted by the icon on the left of an exclamation point. Double-click the warning icon to open the screen that needs to be changed. In this case, you do not have to enter anything, as you will see the warning is now gone from the bottom pane.

    • Select the next error, Selected assignment type “None” is not supported. On the screen that opens, select User. On the User tab, select Admin or any other user, and move it over to the Selected users. The error will then disappear and you can close the screen from the first step.

    • The next message is You must enter a message text for language en-us. Select the message and then enter a text (for example, Test message 1) in the Work item subject and Work item instructions fields. This will remove all error messages and your workflow is now complete.

  10. Select Save and close in the workflow editor.

  11. Specify version notes, for example New workflow.

  12. Select OK.

  13. Select Activate the new version.

  14. Select OK. It might take a few minutes for the workflow editor to finish its activation process, and then it will close automatically.

  15. Select Close.

  16. Refresh the Procurement and sourcing workflows page in finance and operations if you don't see your new workflow.

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.