8 - Set up approvals, access controls, and automations
The asset management app that you set up previously now needs additional checks and balances to maintain data quality. Do this by setting up approval workflows and access controls. In this exercise, you also set up automated workflows.
Set up approval workflows within the assets sheet#
Set up a simple approval mechanism that requires any user who makes changes to submit them for review, and prevents them from writing to the database without approval. This part takes 5-10 minutes to complete.
Enable and configure simple approvals
Open the asset management plan item that you created in the previous tutorial. Switch from Reading to Editing mode by selecting the dropdown at the top-right corner of the plan item. Editing mode gives you access to the sheet's setup options.
Expand the Explorer pane on the left side and select the assets sheet (if you're not already on it). Collapse the pane after you select the sheet so the table has more room.
Go to the PowerTable tab of the toolbar and select Approvals. PowerTable opens the Approvals screen, where you define who reviews changes before they reach the database.
Turn on Requires Approval for All Changes. This switch routes every edit through review instead of writing straight to the database.
Under Who can Approve changes?, select Specific users, enter your email address, and select Save. Naming yourself as the approver lets you test the workflow end to end.
After you save the approval settings, in the Approvals screen, select Back to PowerTable to return to the main table.
Test approvals (optional)
You need a pending change before you can see how the review flow behaves. In the assets sheet, update the Status value on any row in the data (the following screenshot shows a change made to asset tag IT-1248).
Notice that the Save to Database button now reads Submit for Review. This change confirms that your approval workflow is in place. Select Submit for Review.
PowerTable displays a Submit for Review pop-up. All fields in this pop-up are optional. Select Submit to send the change for approval.
In a moment, PowerTable reverts the changes to their original values and adds a spreadsheet-style note indicator on the updated cell. The indicator tells you that this record has a pending approval, so the database keeps the original values until someone approves the change.
In the PowerTable tab of the toolbar, the Approvals button now shows a badge with the number of pending approvals.
The approver also receives a Teams notification from which they can review the request.
Select Approvals to view the requested change.
Select the Details link to view the request.
View the details of the request including the changed values. Select Approve and then select Back to PowerTable.
Notice that PowerTable commits the save and the row now reflects the approved change. Select Audit.
Notice that the audit log captures the save, including the person who made the change and the person who approved it.
Multi-level approval options (optional)
Multi-level approvals route a change request through multiple levels of review before final approval. This process supports compliance, oversight, and better decision-making. Each level corresponds to a different approver, who reviews and approves the request at that level.
You can create up to three levels of approval by using PowerTable sheets.
Within the assets sheet, on the PowerTable tab of the toolbar, select Approvals, and then select Manage Approvals.
Toggle Enable Multi Level Approval to On.
PowerTable displays a pop-up dialog asking you to Confirm your action. Select Proceed.
Set the Number of approval levels to 3. Then, in the Approval Levels section, search for and assign an approver within the respective Search Users field for each level. Select Save to save your changes.
Rule-based approval options (optional)
Rule-based approvals route each request based on rules and criteria that you define. You can set as many rules as required and assign corresponding approvers for each.
Within the assets sheet, on the PowerTable tab of the toolbar, select Approvals, and then select the Manage Approvals.
If the Enable Multi Level Approval option is on, toggle it off. Select Proceed on the Confirm your action pop-up dialog to proceed.
Under the Approvers section, select Users based on rules for the Who can Approve changes? field.
In the Approval Rules section, select the + Add Rule option to add a new rule.
PowerTable displays a New Rule pop-up box to set up rules to check on the data. Within this pop-up, configure the Name for the rule first.
Add Conditions to check for by clicking the + Add Filter option.
You can also add multiple filters and combine them together with a logical AND (meaning all of the defined conditions must be met) or a logical OR (meaning any one of the defined conditions must be met).
Finally, configure one or more Approvers to send the request to when these conditions are met. Select Create to create this rule.
You can configure multiple approval rules with different approvers for each rule.
You also need to provide a fail-safe approver so that requests that don't meet your conditions still reach someone who can approve them.
Access controls dictate whether users can insert, update, and delete data from the table. Set up these access controls for the assets sheet. This part takes 5-10 minutes to complete.
Configure who can add new rows in the assets sheet
On the assets PowerTable sheet, go to the Setup tab in the toolbar and select Manage Access.
Select Row Access and go to the Add – Who can add new rows? section. This section defines who can insert new rows into the table displayed in the PowerTable sheet. The available options are:
No one – turns off the ability to add new rows for everyone who has access to this Fabric Plan item.
All users in this domain – grants the ability to add new rows to everyone who has access to this Fabric Plan item.
Specific users – grants the ability to add new rows to specific individuals or security groups.
Select All users in this domain so that everyone with access to this plan item can insert new rows into the table.
Configure who can update existing rows in the assets sheet
Scroll down to the Update – Who can update existing rows? section. This section defines who can change the existing data on the PowerTable sheet. The available options are:
No one – turns off the ability to update existing rows for everyone who has access to this Fabric Plan item.
All users in this domain – grants the ability to update existing rows to everyone who has access to this Fabric Plan item.
Specific users – grants the ability to update existing rows to specific individuals or security groups.
Rule based access – grants the ability to update existing rows to specific individuals or security groups based on business rules and filters. You can set up multiple rules here. Within each rule, you can define conditions to check for within the sheet's data, and the users who can edit rows that meet those conditions.
Select All users in this domain. This option allows everyone with access to this plan item to update existing data within the PowerTable sheet.
Configure who can delete rows in the assets sheet
Scroll down to the Delete – Who can delete rows? section. This section defines who can delete existing data on the PowerTable sheet. The available options are:
No one – turns off the ability to delete rows for everyone who has access to this Fabric Plan item.
All users in this domain – grants the ability to delete rows to everyone who has access to this Fabric Plan item.
Specific users – grants the ability to delete rows to specific individuals or security groups.
Rule based access – grants the ability to delete rows to specific individuals or security groups based on business rules and filters. You can set up multiple rules here. Within each rule, you can define conditions to check for within the sheet's data, and the users who can delete rows that meet those conditions.
Select Specific users. Within the Search Name or Email text area that appears, search for and select your name or email so that you can delete rows from this sheet. Then select Save. Limiting deletes to named users reduces the risk of accidental data loss.
You set up a simple automation workflow that lets users retire an asset with a single button select, instead of updating each row manually.
Create the automation item and configure the trigger
In this step, you create the automation item and configure it to run when a user clicks the button.
On the assets PowerTable sheet, go to the Setup tab of the toolbar, and select Automations.
Select Create Automation.
Rename the automation to Retire Asset by selecting the pencil icon next to the breadcrumb. Under the suggested triggers, select When a button is clicked. A trigger defines what starts an automation, and this trigger starts the automation when a user clicks a button. In a later step, you create the button that triggers this automation.
Configure the Find Record action
In this step, you dynamically retrieve the Location Id for the Depot location so the following Update action can use it. Alternatively, you can hard-code the Location Id in the Update action.
Select Add Action and then select Find Record(s). The Find Record(s) action can retrieve a set of records that meet specific conditions from a table in the same Fabric SQL database that the PowerTable sheet connects to.
With the Find Record(s) action selected in the automation flow, go to the Properties panel on the right side. Set the Description field to lookup depot location. Then, select dbo for the Schema property, and locations for the Table property. This table defines where the Find Record(s) action connects and retrieves records.
While still on the Find Record(s) properties panel, select Single Record for Fetch type. Then, under Rules, select Location for Field, is for Operator, and enter Depot in the Type or select from list text box.
Configure the Update Record action
In this step, you configure the Update Record action that retires the asset, moves it to the depot, and clears its assignment.
Select Add Action and then select Update Record.
Set the Description to Update asset record to retired, set location to depot, clear assigned to. Under the Configuration section, set the Schema to dbo and the Table to assets.
Set the Update type to Single Update. Under the Conditions section set up a Rule as follows:
Field: select Asset Id.
Operator: select =.
Value: select the + button, select the When a button is clicked trigger, and then select Asset Id.
This rule limits the update operation (retiring an asset) to only the row that corresponds to the button the user clicked. You set up that button later in this exercise.
In the Fields section, select the Add Fields option and then select Assigned To, Location, and Status. These fields update when a user clicks the button.
Update the fields as follows.
Assigned To: select Clear Value.
Status: select Replace Value and enter Retired.
Location: select the + button, select the Find Record(s) action, and then select Location Id.
Select Save to save the automation, and then select Back to Setup.
Configure the button column
In this step, you create the button that triggers this automation flow.
Go to the PowerTable tab on the toolbar in the assets sheet. Select Insert Column, and in the dropdown menu, select Visual Column > Add Button Column.
Configure the Add Button Column panel as follows and then select Save:
Column Name: enter Automation.
Label: enter Retire Asset.
Action: select Execute an Automation.
Automation: select Retire Asset.
Test the automation
Scroll to see the Automation column and select the Retire Asset button for one of the asset rows. PowerTable displays a confirmation message when it triggers the automation and again when the automation completes.
While still on the assets sheet, go to the Setup tab of the toolbar on top and select Automations.
Within the Automations screen, select the Retire Asset automation that you created earlier.
Select Run History and select the View Details link for the first job.
View the results of the trigger, find record(s), and update actions. The run history confirms that each action did what you expected, and it's where you start troubleshooting when an automation fails.
Microsoft, Azure, Copilot, Excel, Fabric IQ, Microsoft Entra, Microsoft Fabric, Microsoft Teams, OneLake, Outlook, Power Automate, Power BI and SharePoint are trademarks of the Microsoft group of companies. IBCS is a registered trademark of IBCS Association. All other trademarks are the property of their respective owners.
This community is operated independently by Lumel. Nothing on this site constitutes a representation or warranty by Microsoft.