5 Tips & Tricks when customizing the Command Bar in model-driven

Поделиться
HTML-код
  • Опубликовано: 3 июн 2024
  • I partnered with Microsoft Canada on this video to share 5 tips and tricks I use when customizing the model-driven Power Apps command bar.
    Join Scott on the Microsoft Canada Developer Digital Meetup Tour: 👉aka.ms/scottpp
    ✨How to clone a record including child records
    ✨How to control the visibility of a button depending on the state of a form
    ✨How to update grid records FAST
    ✨Know how component library publishing really works
    ✨Catch & Handle errors in your command button commands
    ✨A few bonus tips are thrown in!
    Learn more: 🔗 learn.microsoft.com/en-us/pow...
    🔗 Comparison between Ribbon Workbench and modern commanding - develop1.net/public/post/2021...
    Contents:
    00:00 Introduction
    00:31 Tip 1 - How to clone a record including child records
    07:59 Tip 2 - How to control the visibility of a button depending on the state of a form
    08:53 Tip 3 - Know how component library publishing really works
    12:04 Tip 4 - How to update grid records FAST
    14:36 Tip 5 - Catch & Handle errors in your command button commands
    16:44 Join Scott on the Microsoft Developer Digital Meetup Tour!
    Huge thank you to Microsoft Canada for sponsoring and collaborating on this video!
    #sponsored #powerplatform #powerapps
  • ХоббиХобби

Комментарии • 60

  • @JD-lx3cx
    @JD-lx3cx Год назад

    Great video again. Thank you Scott for sharing!

    • @ScottDurow
      @ScottDurow  Год назад

      My pleasure! Thank you for watching ☺️

  • @francomussocom
    @francomussocom Год назад +2

    Simply incredible 👏🏻 🥇 Each of those tips would’ve been a worthwhile watch by themselves. Your crystal clear explanation finally made the immense value of ‘With’ click for me. Now wondering how we lived without it!!

    • @ScottDurow
      @ScottDurow  Год назад

      Really glad you found it helpful! Thanks for those kind works and thanks for watching ☺️

  • @user-vj5ms4ce8p
    @user-vj5ms4ce8p Год назад

    As usual very useful, thanks Scott

    • @ScottDurow
      @ScottDurow  Год назад +1

      Thank you so much - glad it was helpful - and thank you for watching and subscribing 😊

  • @BenWalker-oz7iz
    @BenWalker-oz7iz Год назад

    Thanks Scott, top stuff as ever!

    • @ScottDurow
      @ScottDurow  Год назад

      Thank you 😊 and thanks for watching and your support.

  • @haiderrasool1699
    @haiderrasool1699 Год назад

    What an informative video. Keep it up mate! ❤

    • @ScottDurow
      @ScottDurow  Год назад

      Thank you so much for watching ☺️

  • @karishmaharjani4521
    @karishmaharjani4521 7 месяцев назад

    Thanks! This is wonderful 😊 Had a query though, in tip no 4, if I only want to update a part of the selected records based on a condition, how can we do the same? Appreciate your response.

  • @sanwoolutolu4123
    @sanwoolutolu4123 Год назад

    Hi Scott. For the "update records fast part". Is there a way to do this for bulk deletion of records using Remove or RemoveIf for a parallel call to the DB rather than a sequential loop of calls

  • @SmartLearningAI
    @SmartLearningAI 5 месяцев назад

    Great tips thanks Scott. Btw, do you know of a good OBS annotation tool? (free) or what do you use to draw those red boxes?

  • @elliotfraser902
    @elliotfraser902 Год назад

    I love this feature, so easy to use! Would be great to have the ability to navigate to custom pages using powerFX only some day, I wonder if it's on the roadmap

    • @ScottDurow
      @ScottDurow  Год назад +1

      I hope so - being able to show custom pages as dialogs from Power Fx would be amazing! Thank you for watching 😊

  • @sanwoolutolu4123
    @sanwoolutolu4123 Год назад

    Great video Scott. Really loved the "fast" approach to Patching multiple items. The "Confirm" function was also something new to me.
    One question though, can you run instant flows using buttons the command bar. I know there is a default flow dropdown, but I was thinking of an issue where you can just use powerfx to run a flow

    • @ScottDurow
      @ScottDurow  Год назад

      Thank you and thanks for watching - glad you found it helpful ☺️ You can trigger a flow using a number of different approaches - check out this video for some ideas!
      ruclips.net/video/U9AThfx8ZQE/видео.html

  • @DeepDeep-zd5jq
    @DeepDeep-zd5jq 9 месяцев назад

    Nice video Scott in my senario I just want to update all child records of one of my parent record can you help me with that power fx formula thanks.

  • @nph8440
    @nph8440 5 месяцев назад

    Thank you for the Tipps!
    I am encountering a bizarre problem. I added a drop-down button to a form using the modern commanding.
    When I open the MDA using my browser the whole command bar disappears and takes around 20 seconds to appear. Standard buttons like “save” work. My custom ones don’t.
    If use the Power Apps Desktop Client or a MDA embedded as Teams App the command bar appears immediately and the buttons work.
    Any idea?

  • @SmartLearningAI
    @SmartLearningAI 5 месяцев назад

    The With is really cool. Almost like a CTE in T-Sql right?

  • @shayjukasim575
    @shayjukasim575 Год назад

    Hi Scott thanks , how do we export this in a solution. Seems cant find even in default solution

  • @bgreig0001
    @bgreig0001 4 месяца назад

    Hey Scott, this is a great tutorial, but I'm running the fast Update method against my account view and it gives me an error that nested patches are not allowed!

  • @PederBennedsen
    @PederBennedsen Год назад

    As usual, a really good video. 😀👍
    I am impressed with how fast your app runs in the browser. Which browser are you using? Did you do anything special to optimize the speed?

    • @ScottDurow
      @ScottDurow  Год назад +1

      Thank you so much and thanks for watching! 😊Nothing special - just Edge!

  • @AssassinUK
    @AssassinUK 8 месяцев назад

    Tip No. 4 🔥🔥🔥

  • @jorgeblascoarnandis3644
    @jorgeblascoarnandis3644 Год назад

    Hi Scott, thanks for the tips! One question, is there any way to cancel the 'autosave' that is done before the commands are initiated?

    • @ScottDurow
      @ScottDurow  Год назад

      You can turn off auto save - but this would apply to normal form loads and navigating as well. learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/manage-auto-save

  • @SmartLearningAI
    @SmartLearningAI 5 месяцев назад

    Do you know how to hide some of the existing buttons easily without using workbench tool or complex java?

  • @jakov3025
    @jakov3025 9 месяцев назад

    Can you hide an button based on users security roles?

  • @TDevolder
    @TDevolder Год назад

    Thx, Scott, for this interesting overview.
    If I may give a suggestions for a 6th tip: how to (if possible) migrate commands from one app to the other. I encountered issues when reusing a customized form with form command buttons from app A (e.g. sales app) in app B (e.g. customer service), because commands are linked per App. So, in app B, you can perfectly reuse the customized form but none of the commands on the form are available anymore. I tried different solutions (e.g. reimporting the commands in Solution B) , but at the end I had to manually recreate every command and underlying code in App B...
    So, if there would be a quick fix for this issue, I would like to get that "6th tip" 😉

    • @ScottDurow
      @ScottDurow  Год назад +1

      Thank you and thanks for watching - That is a great idea - ALM is an important topic for sure. Currently by default when you add a button to an app, it will only be added to that app and not appear in any others. There is a way to convert a button into a 'table' scoped command so that it will appear in all apps - you can learn more here - learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/commanding-scopes
      I'll definitely add this to my list for future videos! Thank you again 😊

    • @TDevolder
      @TDevolder Год назад

      @Scott Durow I knew you still had a sixth tip up your sleeve 😀 I highly appreciate the tip and looks like it'll solve my problem. Huge thanks!

  • @santhalakshmiv748
    @santhalakshmiv748 Месяц назад

    I am facing a weird problem. On form edit when user edit and immediately click any custom command bar button, the notification and navigation are not working
    But when user click save and then custom command button, navigation and notification works fine.
    Any reason why notifications and navigation didn’t work on unsaved form
    I have autosave turned on by the way.

  • @Dev-rm8wq
    @Dev-rm8wq Год назад

    You are a god

  • @sagarnagadiya
    @sagarnagadiya Год назад

    Is that component library a separate component required to be included in the solution for export , import ?

    • @ScottDurow
      @ScottDurow  Год назад

      Hi Thank you for watching! Yes- the component library and the buttons are separate solution components - they will automatically get added into the solution that contains the app you are working on. 👍

  • @konstantinadureva6053
    @konstantinadureva6053 Год назад

    Hi Scott, my requirement is to remove certain buttons from the classic commanding experience. How can I do that? Thank you.

    • @ScottDurow
      @ScottDurow  Год назад

      At this time modern commanding does not allow you to do this - you will need to use the Ribbon Workbench - d365demystified.com/2020/02/19/hide-custom-ribbon-button-easy-way-ribbon-workbench/

  • @bidslimited
    @bidslimited Год назад

    @Scott: Thanks for the tips. wanted to check if have you faced any issues in setting the command visibility based on the lookup field. I feel that the New command bar's visibility functionality is not stable.
    - Maniraj

    • @ScottDurow
      @ScottDurow  Год назад

      Hi Maniraj - thank you and thanks for watching 😊What is the Power Fx visibility expression you are using?

  • @csgexec
    @csgexec Год назад

    Great content! Microsoft needs to do something about the poor performance around publishing in general. For this type of publish event, the delay is somewhat understandable. But publishing a new version of a Form, for example, many times takes 15-20 minutes for the new Form to appear.
    And don’t get me started with the ever-devolving performance of Classic mode for performing any admin/dev work…

    • @ScottDurow
      @ScottDurow  Год назад

      Hi - thank you and thanks for watching and subscribing ☺️ It always seems to take longer when I watch the spinning wheel - but if I go and do something else I get distracted!

  • @MrBencoussens
    @MrBencoussens Год назад

    Scott this is great but when i apply it to a Main Grid not a form the button disappears, have you seen this before?

    • @ScottDurow
      @ScottDurow  Год назад

      Hi! On a grid - you would need to add a Visibility expression such as CountRows(Self.Selected.AllItems)>0

  • @pramodm1611
    @pramodm1611 Год назад

    Really useful one. It reduces the effort. The documentation says User() is not supported. Is there any alternate way of getting this? Really don't want to use JS just for this :(

    • @ScottDurow
      @ScottDurow  Год назад

      Hi! Thank you so much and thanks for watching. I hope User() will be supported in the future too - today it depends on what you need to do - you can use RecordInfo() and DataSourceInfo() to use permissions for visibility rules.

    • @pramodm1611
      @pramodm1611 Год назад

      Thank you Scott.

    • @pramodm1611
      @pramodm1611 Год назад

      @@ScottDurow : I need to set the lookup with a current user after confirmation on button click. So getting the userid or emailid of the currrent user is the challenge here.

  • @random_stuff7668
    @random_stuff7668 3 месяца назад

    My Data is not getting updated from Main Grid.. I tried with both fast and slow method

  • @numsegarn
    @numsegarn Год назад

    How do I prompt the user for a number if I would like to update several records, instead of using a random numbers. And especially if I would like the user to select something from a lookup. Lets say update "customer" for a number of opportunities. Would that be possible?

    • @ScottDurow
      @ScottDurow  Год назад

      Yes you could do this by displaying a custom page from the command bar and performing the update there.

  • @disturbedcarrot
    @disturbedcarrot Год назад

    Ribbon workbench is dead, long live Ribbon workbench! Great video.

    • @ScottDurow
      @ScottDurow  Год назад

      Hehe - thank you for watching ☺️ it does seem the RWB is going to be around for a while yet!

  • @user-ov3gr1fy5w
    @user-ov3gr1fy5w 5 месяцев назад

    Am I the only one who can't edit the FX for a custom button?
    I create a button and the FX-command is disabled.
    What I find in the browser console:
    error: {
    code: "0x80040217"
    message: "Entity 'appaction' With Id = 0f25xxxx-7773-xxxx-a256-737644d795b6 Does Not Exist"}
    For me it looks like a developer misspelled "application" and now the GUI breaks.

  • @doud1158
    @doud1158 Год назад

    You should be refunded by social security !! Love your content !! 😇

  • @s1301950
    @s1301950 Год назад

    Your ribbon workbench is still the best. Nothing can replace it.. nice try power fx.

    • @ScottDurow
      @ScottDurow  Год назад

      Awww thank you for saying so! 🤩And thanks for watching and your support ☺️

    • @user-vj5ms4ce8p
      @user-vj5ms4ce8p Год назад

      There is no question that RWB is best among all the tools I used to work with Ribbon/Command Bar. But when the Guru himself show us the way to transition into Power FX slowly how can we not follow. Power FX is the future :)

  • @mathiaskramer9595
    @mathiaskramer9595 9 месяцев назад

    Why this wont work for me?? i try it with Opportunities. i wanna Copy a Opportunity with Opportunityproducts. i just get Errors in my PowerFX Action, it wont work..
    With({
    opportunity:
    Patch('Opportunities',
    Defaults('Opportunites'),
    {
    Name: Self.Selected.Item.Betreff & " (copy)"
    }
    )
    },
    // Clone child records
    );

    • @pwrteams
      @pwrteams 13 дней назад

      Very likely you don't have all conditions for creating an opportunity record in place. Sometimes missing mandatory fields prevent record creation without any warning.