Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Workflow Automation with Microsoft Power Automate

You're reading from   Workflow Automation with Microsoft Power Automate Design and scale AI-powered cloud and desktop workflows using low-code automation

Arrow left icon
Product type Paperback
Published in Dec 2025
Publisher Packt
ISBN-13 9781836649632
Length 505 pages
Edition 3rd Edition
Arrow right icon
Author (1):
Arrow left icon
Aaron Guilmette Aaron Guilmette
Author Profile Icon Aaron Guilmette
Aaron Guilmette
Arrow right icon
View More author details
Toc

Table of Contents (28) Chapters Close

1. Workflow Automation with Microsoft Power Automate: Drive digital transformation with AI-powered automation and low-code business workflows
2. Chapter 1: Introducing Microsoft Power Automate FREE CHAPTER 3. Chapter 2: Getting Started with Power Automate 4. Chapter 3: Working with email 5. Chapter 4: Copying files 6. Chapter 5: Creating Button Flows 7. Chapter 6: Generating push notifications 8. Chapter 7: Working with shared flows 9. Chapter 8: Working with Conditions 10. Chapter 9: Understanding Expressions and Functions 11. Chapter 10: Getting Started with Approvals 12. Chapter 11: Working with Multiple Approvals 13. Chapter 12: Posting Approvals to Teams 14. Chapter 13: Using Databases 15. Chapter 14: Working with Microsoft Forms 16. Chapter 15: Posting to Slack 17. Chapter 16: Accepting User Input 18. Chapter 17: Automating Entra ID 19. Chapter 18: Introducing Robotic Process Automation 20. Chapter 19: Contributing to an Access database with RPA 21. Chapter 20: Automating webpages with RPA 22. Chapter 21: Introducing AI Models and Generative AI 23. Chapter 22: Creating a sentiment analysis flow 24. Chapter 23: Using Copilot to create and manage flows 25. Chapter 24: Using Generative AI to summarize documents 26. Chapter 25: Exporting, importing, and distributing flows 27. Chapter 26: Monitoring and troubleshooting flows 28. Chapter 27: Governance in the Power Platform

Adding content to a database

Now that you have configured a server, a database, and a table with columns, you get to see all the pieces working together. In this section, you'll create a flow, execute it, and then verify that it wrote the data successfully.First, let's create a flow so that we can add content.

Creating the flow

To verify that you've configured database connectivity, we'll walk through creating a sample button or instant flow so that we can post data to the database. Follow these steps to create the flow:

  1. From the Power Automate web portal (https://make.powerautomate.com), select Create.
  2. In the Start from blank section, select Instant cloud flow.
  3. Enter a name for the flow, and then select Manually trigger a flow as the trigger type.
  4. Click Create.
  5. Add an action.
  6. In the search box, enter SQL insert and then select the Insert row (V2) action:

    Figure 13.13 - Selecting the Insert row (V2) action
  7. Select the Server name, Database name, and Table name you created in the Creating a database table section.

    Figure 13.14 - Selecting the server, database, and table
  8. Once you've selected the items from your connection, the action will update to display all the available columns under the Advanced parameters section. Select all of the parameters.

    Figure 13.15 - Adding test data
  9. After selecting the column names, add some test data, as shown in Figure 13.16:

    Figure 13.16 – Populating data
  10. Click Save.

The flow is now ready to test.

Executing the flow

Use the process you learned about in Chapter 5, Creating Button Flows, to execute the flow. As a refresher, you can follow these steps:

  1. On the Maker canvas page, click Test.
  2. Select the Manually radio button and click Test.
  3. On the Run flow flyout panel, click Continue.
  4. Click Run flow.
  5. Click Done.

With that, the flow has been successfully executed.

Verifying the flow

You can check whether the content was written to the flow by examining the flow's run history or by querying the database table in SQL.

Reviewing the run history

The easiest and quickest way to verify whether the flow is successful is to examine its run history. The flow's run history will show the steps that were performed during the flow's execution. You can review the run history for the flow by using the following process:

  1. Expand the ellipsis for the flow and then select Run history.
  2. Select the date and time of the run to display the history.
  3. Expand the SQL action to view the data:
Figure 13.17 - Viewing the SQL Insert row (V2) action data

The expanded action will show the data that was inserted into the table.

Reviewing the SQL data

You can also use the process you used earlier under the Creating a database table section to validate data. Using the SQL Query editor, you can also view the newly added data. To view the SQL data directly, follow these steps:

  1. From the Azure portal (https://portal.azure.com), navigate to Azure SQL | SQL databases and select the database.
  2. Select Query editor (preview). Enter your login credentials to access the database, if necessary, and then click OK.
  3. In the Query editor (preview) blade, expand Tables, select dbo.Customers, and then click the ellipsis for the table. Click Select Top 1000 Rows.
  4. Compare the data in the Results pane to the values you entered in the Creating the flow section.
Figure 13.18 - Navigating to the dbo.Customers database table

No matter how you choose to verify that the flow was executed successfully, you should be able to see the same data.

lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Workflow Automation with Microsoft Power Automate
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon