Exercise - Use a connector from Power Automate

Completed

In this exercise, you will create a manually triggered Power Automate cloud flow that will use the Contoso invoicing custom connector that you created in the previous exercise in this module.

Important

Complete the Exercise: Create a new connector in a solution unit before starting this exercise.

Task 1: Create a Power Automate cloud flow

In this task, you will create a Power Automate flow inside the Contoso invoicing solution that you previously created.

  1. Get an API key from Contoso Invoicing.

  2. Select the API Key link.

  3. Copy and save your API key because you will need it later.

    Note

    If you still have the API key that you previously used, it would still be usable at this time. If not, you can get a new one.

  4. Go to Power Platform maker portal and select the environment that you used in the Exercise: Create a new connector in a solution unit.

  5. Select Solutions and then select to open the Contoso invoicing solution.

  6. Select + New > Cloud flow.

    An arrow pointing to the create new cloud flow button - screenshot.

  7. Name the flow Email invoice list.

  8. Enter manually trigger in the search box and then select Manually trigger a flow.

    An arrow pointing to the Manually trigger a flow trigger - screenshot.

  9. Select + New step.

  10. Select the Custom tab and then select the Contoso invoicing custom connector. Using the Custom tab to locate custom connectors is the fastest way to find them.

    An arrow pointing to the contoso invoicing custom connector - screenshot.

  11. Select List invoices for the action.

  12. Enter My invoice connection for Connection Name. Use a name for the connection that makes sense to you.

  13. Paste the API key link that you copied into the API Key field and then select Create.

    Create connection - screenshot.

  14. Select + New step.

  15. Search for create html and then select Create HTML table.

    An arrow pointing to the Create HTML flow action - screenshot.

  16. Select the From field and then select body from the Dynamic content pane.

    Select an output from previous action - screenshot.

  17. Select + New step.

  18. Search for send me an email and then select Send me an email notification.

    An arrow pointing to the send me an email notification flow action - screenshot.

  19. Enter Contoso Invoices for Subject.

  20. Select the Body field and then select Output from the Dynamic content pane.

    Select an output from previous step - screenshot.

  21. Select Save.

  22. Select the arrow button located next to the flow name.

  23. Select OK if prompted.

  24. Do not navigate away from this page.

Task 2: Test the cloud flow

In this task, you will test the cloud flow that you created in Task 1: Create a Power Automate cloud flow.

  1. Select Run.

  2. Select Continue.

  3. Select Run flow.

  4. Select Done.

  5. Refresh the run history.

    The flow run should succeed.

    An arrow pointing to the refresh run history button - screenshot.

  6. Select the App launcher button and then select Outlook. You can also go to your Outlook inbox.

  7. You should receive an email from Power Automate. Open the email.

    The email body should show a list of invoices.