- May 30, 2022
- In Dataverse, Dynamics 365, Dynamics 365 Sales, Power Apps, Power Platform
- 2 Responses
I recently found out that we can add or edit ribbon buttons/command bar in PowerApps itself.
I had the habit of customizing ribbon buttons using ribbon workbench, but this time I thought of doing it in PowerApps itself.
I found out that in PowerApps we have to use Power Fx formula for determining the visibility of ribbon buttons.
After a bit of research I could build this formula.
If(Self.Selected.Item.Status = ‘Status (Marketing Requests)’.Active, true, false)
I have created two buttons ‘Approve‘ and ‘Reject‘ which will be hidden when the status of the record is Inactive.
Click on the button and a command panel will open in left hand side.
Scroll down in the command panel until you find ‘Visibility‘ option and select ‘show on condition formula‘. Add this formula in the textbox which has fx as a label and then click on ‘Save and Publish‘
If(Self.Selected.Item.Status = ‘Status (Marketing Requests)’.Active, true, false)
After publishing we can see that the buttons are not visible when the record is inactive.
Let started with our D365 Quickstart package and get onboard within 7 days!
I'M INTERESTED!
Thank you, this was very helpful 🙂
What if we want to use our custom status field. Because the custom status field is not appearing in the intellicense?