How to create a button in a Model Driven (Dataverse) Power App that launches P.A. Flow in a Solution

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • This video explains how I was able create a button in a Model Driven (Dataverse) App that launches a Power Automate Flow in a solution. The requirement came with a few additions that made it even more tricky to implement.
    1. The flow needed to know who the App user is so it can send a notification to that user.
    2. The flow also needed to know which Dataverse record was selected.
    3. The App and Flow in part of a solution that will be sent as a Managed Solution to Test and Production environments. So, I could not hard code the Flows URL.
  • Věda a technologie

Komentáře • 10

  • @wrajer
    @wrajer Před měsícem

    thanks a lot!

  • @imstillbreathing1
    @imstillbreathing1 Před 11 měsíci +1

    I love your videos. They have helped me a lot over the last few weeks of doing projects for my company!

  • @ChrisMcGrory0513
    @ChrisMcGrory0513 Před rokem

    Great video! Would you be able to make another video going through the steps following the HTTP request trigger?

  • @jhhood86
    @jhhood86 Před 4 měsíci +1

    I was able to get all this to work and thank you very much for explaining all this! However I'm a little fuzzy on the migration/environment variable part. I understand that when I import my solution into my clients' environment, I have to define the variables there so the URL wont exactly be generated yet. I guess I would have to do a double import? Let it generate first, get the url, then reimport to set the variable?

    • @365assistdarrenlutchner9
      @365assistdarrenlutchner9  Před 4 měsíci

      Perhaps you could use Environment Variables. That way you can change the variables values in the new environment.

  • @okidipekimbambo
    @okidipekimbambo Před 2 měsíci

    Where can I find the JavaScript code You are using here???

  • @DennyEapen
    @DennyEapen Před rokem

    Didn't work for me.
    static async CallWorkflow (executionContext:Xrm.Events.EventContext){
    const formContext = executionContext.getFormContext();
    }
    gave the error *Uncaught (in promise) TypeError: executionContext.getFormContext is not a function*

    • @DennyEapen
      @DennyEapen Před rokem

      Never mind 🙂
      I was using EventsContext instead of FormContext.
      Thank you very much