Power Dynamics
  • Power Dynamics
  • 🍕My name
  • D365 CE
    • Copilot
      • 🥐Add Copilot into Rich Text Control
    • Sales
      • Copilot in D365 Sales
      • Export record to PDF
    • Customer Experience
      • Contact Center (Omnichannel)
        • 🐚Internal Live Chat in MDA
        • 📢Add Chat Widget to Power Pages - Proactive Chat
      • Attachment Control
      • Case Routing: Basic Routing rule set
      • Custom SLA for any Entity
      • Customer Insight
        • Journey - Custom Trigger - Call Power Automate
    • Field Service
  • Power Platform
    • Analytics
    • Dataverse
      • Use case for the feature of Record ownership across Business Unit
      • 💡Workaround: Change the OOB "Exchange Rate" of a record
      • Using a Virtual Entity to store historical log (sample)
      • Disable Empty Address record
      • Using Adaptive card
      • Block Unmanaged Customizations
      • 🪃Recycle Bin on Dataverse (Preview)
    • Model Driven App
      • 💡Run SSRS report on MDA mobile
      • 💡Tip: Create a Security Role with "App Opener" minimum privileges
      • Tag @person to notify in MDA
      • Auto search on the Lookup field
      • Activities with multiple related records
      • Embedded Power BI - Dashboard
      • Embedded Power BI - Form
      • "Custom Help" - Is it help?
      • New modern Command Bar
      • Tip: Hide the button "Add Existing Record" on subgrid
      • Custom Page - Why not?
      • Hiding sensitive column data
    • Canvas App
    • Fabric & Power BI
      • New Text slicer
      • Dataverse link to Microsoft Fabric
      • 💡Leveraging Interactive Warehouse Floor Maps in Power BI
      • Calculation Group for Time Intelligence
    • Power Automate
      • ✅Sequential Approval
      • 📤Create an Appointment by Outlook Graph API
      • Dowload SSRS Report and Send email
      • Power Automate: Add a table in Email
      • 💡Tips: Get "DisplayName" of the Lookup field on Power Automate
      • E-sign: Power Automate & DocuSign
  • D365 Finance & Operation
    • General
      • 🇻🇳D365 FnO - Virtual entities: Use case
    • Finance
      • Consolidating Customer & Vendor Balances
    • Supply Chain
      • Landed Cost Series
        • Landed Cost- Essential Configuration
        • Landed Cost Scenarios 1
Powered by GitBook
On this page
  • My challenge
  • Proving steps
  • Doing...
  • Create a custom button "CMM Request"
  • Create an Approval - Power Automate

Was this helpful?

  1. Power Platform
  2. Model Driven App

New modern Command Bar

The sample of using command bar with functional consultant. Using the command bar to prepare the POC/Demo solution for customer.

Previous"Custom Help" - Is it help?NextTip: Hide the button "Add Existing Record" on subgrid

Last updated 1 year ago

Was this helpful?

My challenge

In my role as a Business Analyst/Functional Consultant, I'm tasked with presenting a DEMO to a new client. Drawing from my experience, which includes some developer skills, I'm exploring alternative approaches to executing the DEMO without relying on the development team's assistance - because of the available resources.

My case My current task involves creating a new button on the Command bar to initiate an approval request. Traditionally, I've sought support from the development team for such tasks. However, with the introduction of the new app designer, I've discovered the ability to handle this independently, especially in simpler cases.

Scenario: I'm in the process of preparing a DEMO for a customer, and I have a specific requirement: Upon creating an Account master data record, the user needs to submit this record to the IT Admin for verification and subsequent creation of a new record in another system. To demonstrate this functionality, I've crafted a custom button called "Customer Master Maintenance request" (CMM request) on the Account form's command bar. When this button is clicked, it triggers an action that updates the Account record's status to "CMM requested". Subsequently, the system initiates a Status change to send an Approval request to the IT Admin for review and approval."

Proving steps

Doing...

Create a custom button "CMM Request"

Open the new App Designer from make.powerapps.com >> then select the Account view >> click Edit Command bar >> click Edit or Edit in new tab.

After that, the new windows will pop up. You must select the area where you create the custom button.

  • Main grid: select if you want to create the button on the Account Main view

  • Main form: select if you want to create the button on the Account Main form

  • Subgird view and Associate view: select if you want to create the button on subgrid/ associate view into the Account main form.

And in my scenario, I will select the Main form.

Now, here, click New >> choose Command >> then input the Label, Icon to define the button as below.

Action >> Run Formula

--powerfx--
If(Confirm( "Do you want to submit CMM request?"),
    Patch(Accounts,Self.Selected.Item, {'Status Reason' : 'Status Reason (Accounts)'.'CMM Requested'}))
    

Okay... the final step is "Save and Publish" >> then open the app and check...

Yeah.. the button is run as well. The Status Reason has been changed to "CMM Requested".

At this time, the Approval Flow will be run because I created the Approval Power Automate trigger on the field "Status Reason" changed.

Create an Approval - Power Automate

In the next step, we will define the Action of this button by So, in my situation, I will show the notification and update the Account status to "CMM Requested".

In some cases, you can configure the Visibility button to improve the UX/UI. (configure in the option Visibility >> Run Formula).

For more details - you can find the link: .

Thank you and hopping well. [NTD]yns.asia ... Thank you.

😍
Power Fx language.
Customize the command bar using command designer
☕
❤️
invite me a cup.
Sample steps
Edit command bar
New studio for creating custom button
New "CMM Request" custom button
New button is working
Sample approval flow