Managing Pending Approval Requests in Power Automate

Who still hasn't approved?! A simple question that's not so easy to answer when it comes to using Power Automate Approvals. If you have pending approvals — especially those with multiple approvers where all must approve — there's really no good out-of-the-box way to obtain this information. Sure, there are workarounds, such as tracking approvals in a custom list and syncing it with Power Automate, but this carries the risk of the data becoming out of sync with the "source of truth" in the Dataverse Approvals table. Therefore I wanted to come up with a solution that will:…

Comments Off on Managing Pending Approval Requests in Power Automate

The Dataverse Batch API: A Practical Guide for Power Automate

If you're a seasoned Power Automate user, no doubt you've encountered performance bottlenecks with bulk CRUD operations against a data source. Using Apply to Each loops can be slow and consume precious API calls per action. This is compounded when the operation involves a large volume of data. This post will discuss how to make use of the Batch API requests with Dataverse to significantly speed up these operations — often down to just one API call! It's a more advanced but extremely powerful technique of interacting with Dataverse. In my fictitious examples, I will be working with…

Comments Off on The Dataverse Batch API: A Practical Guide for Power Automate

Force Sync Users to a Dataverse Environment

Unlike a default environment in your tenant, which includes all valid users in Entra, other Dataverse environments that use security groups to control access do not automatically sync those users. In order for a user to obtain access to an environment, they need the following: A valid Power Apps license Access to the environment’s security group A security role within the environment If any of those three conditions aren’t met, then nope—no access. Even then, however, the user still won’t automatically show up! The reason is because Dataverse uses just-in-time (JIT) user provisioning, meaning qualified users are only…

Comments Off on Force Sync Users to a Dataverse Environment

Collect External Responses in Dataverse Using Microsoft Forms

A common requirement is the need to collect responses from users outside of your organization. Anyone who's spent a good deal of time within Power Platform knows this can quickly turn into a very complex task! I don't want to license external users and I don't want to build a Power Page to collect some simple form responses! Surely there's got a be a simpler way? Well, with the help of the pre-filled URL feature in Microsoft Forms, and a little Power Automate, there is! Scenario: Event Response Submissions In this example, I'm gathering Power Platform Conference Event…

Comments Off on Collect External Responses in Dataverse Using Microsoft Forms

Import Data into a Many-to-Many Relationship Table in Dataverse

Importing data into a table in Dataverse auto-created by a many-to-many relationship proves to be much less straight-forward than it ought to be. For example, PowerApps Dataflows don't support importing to them. In this post, I’ll showcase two methods to import data using both Power Automate and the Dataverse Web API. Scenario: The Auto Inventory Manager I have this Dataverse data model for my Auto Inventory Management solution: Many Models can belong to a single make. That's a classic Many-To-One relationship. However, many models come in many different body styles. (Ex: a Honda Civic comes in a hatchback…

Comments Off on Import Data into a Many-to-Many Relationship Table in Dataverse

Fetch a List of PowerApps across Environments

One of the challenges I’ve faced when using the Power Apps Admin Center is getting a quick view of all the apps within all environments for documentation purposes. Sure, you can go into each environment's Admin Center and view the apps, but this is not efficient. Even worse, from there, there's no way export the a list of the apps! To solve this, I explored several options before landing on the approach I describe below. First, I tried PowerShell with the Get-AdminPowerApp cmdlet—but that only returns Canvas App data. No Model-Driven Apps in sight. Then I turned to…

Comments Off on Fetch a List of PowerApps across Environments

Automated Azure AD Credential Expiration Alerts

All secrets and certificates created within Azure App Registrations have expiration dates, making it crucial for administrators to stay informed to take timely action. Microsoft does not provide an automated notification for this. However, by leveraging Microsoft Graph API and Power Automate, you can set up automated alerts to notify when secrets and certificates are nearing expiration—or have already expired. Below is an example e-mail of expiring and expired secrets and certificates generated by Power Automate: The end-result in e-mail showing expiring secrets, expired secrets, as well as an a csv export of all secrets. Requirements You'll need…

Comments Off on Automated Azure AD Credential Expiration Alerts