Power Pages– Entity List: Conditional Action

Power Pages enables us to execute actions on the specific records displayed in an Entity List, with possible actions including:

Trigger an On-Demand Workflow Redirect to a Web Page Activate/Deactivate the record List Item. Create a related record Delete / Edit the record View Details of the record

This capability is especially helpful when dealing with multiple forms within a single entity or when you need to redirect to another page while passing parameters, among other scenarios.

The focus of this post is not to extensively cover the process of setting up the Entity List and connecting Actions. To learn more about this, please refer to the following documentation: https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/entity-lists

In this post, I will show how to filter (display/hide) the Entity List Action options based on the record data with a Fetch XML filter:

  1. Create an Entity List record , In our post we create entity list for active “Active Account”
  • Create an Action to your Entity List For Specific Records
    • I am creating a simple Workflow (On-Demand) to send an e-mail to the Primary contact if exists , so this action wont be displayed if the account doesn’t have primary contact

At this moment, if you test your Portal, you will see the two options available in the Action menu for each Item:

Now this Workflow action will appeared for all records as show below

We need to show this Action button only when account has Primary Contact , so you need to mark the advanced settings and put you filter xml in the filter criteria

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top