Tip #1430: Add Power Automate flows into solution like a boss

You didn’t think I was waffling about replacing triggers in Power Automate flows for no reason, did you? Not once but twice, in fact. The technique of painlessly replacing triggers is more like a kata before you master the art of breaking bricks with your head 🧱🤕.

Enter the world of solutions where nine out of ten attempts to import a flow from outside are met with “Where the **** is my flow?!”.

Typical WTF day. I KNOW I have like 42 flows outside the solutions!

I hope you are not like me because, for what seems like eternity, I was behaving like an uneducated baboon and was blatantly ignoring the Learn more link because, you know, real men don’t read user manuals. Turns out, apart from the brick crushing trigger replacing kata, this link has everything you need to master the art of import.

Let’s have a look at that non-manly reference Solutions in Power Apps – Power Apps | Known Limitations.

Flows using connectors that are ‘indexed’ cannot be added into solutions. Indexing isn’t supported for solution cloud flows yet. Indexing enables the quick retrieval of those flows to display in a menu or list. Indexed connectors include Power Automate instant (button) flows, Power Apps, Teams, SharePoint, Dynamics 365 Customer Voice, Microsoft Forms, legacy Dataverse connector, Dynamics 365, Excel Online, Microsoft Project, Azure IOT Central V2, and Project Online.

Read the list of connectors and weep because, according to British scientists™, when you work in Power Platform ecosystem that’s 98.4% of all the triggers you use. For example, if you have a ready to go manual flow prototype created in 1987, i.e. outside a solution, and you’re planning to use it as a child labor then you’re simply out of luck because manual is another word for “Power Automate instant I need to be indexed or 7 puppies going to die (button)” flow. Also featured in this hit list is legacy Dataverse connector a.k.a. “The only codeless way known to humanity to run a flow against a selected item (until the fullness of time®)”. And that’s even before you look in the SharePoint General Direction.

But let’s not dwell on the past laden with expletives and read on:

Workarounds for this limitation:

Edit the flow to remove the indexed connector triggers/actions, add it into a solution, and then change it back.

Digital transformation take the wheel! Magic steps, folks, magic steps:

  1. Delete the “indexed” (whatever the heck it means) trigger from the flow. How do you know which step to delete? It’s the first one! Want to do it without breaking your masterpiece? See this and that.
  2. Add a silly “non-indexed” (whatever the heck it means) trigger, e.g. schedule.
  3. Try importing again. Voilà! The flow is now visible. Did I mention magic?
  4. Import that flow.
  5. Recreate the original trigger.

Like a boss memeNow of course you can see why we’ve been practicing the art of replacing triggers without breaking anything else.

Cover image courtesy of Heiko Behn | Pixabay.

8 thoughts on “Tip #1430: Add Power Automate flows into solution like a boss

  1. Booga Web says:

    Cool article! How can we monitor flows activities when they are under solutions? They are not listed in the Cloud Flow Activity

    Thanks!

  2. Rory dela Paz says:

    Thank you so much for this article. I ran into the same exact issue with my trigger being the “Manually Trigger a Flow” that is listed first under their examples of “Indexed connectors”. I ended up deleting this trigger and replacing it with the Built-in Schedule – Recurrence, as you noted.

  3. Rob Dawson says:

    We will also want to next do this: change the My Flow so that it can make use of Connection References. Unless this method followed by Kent Weare in the linked video, we will not be able to use conref – and we should!

    https://www.youtube.com/watch?v=Hf2_0MQ9Pfg

    tldr: add the connectionMode?connectionMode querystring param to the flow url once in the solution

    (or in the UI, go to Flow Checker in the Flow Details page and this styled link will be contained against the words “Remove connections so connection references can be added”)

  4. Mark says:

    You’re an effin legend. That is all.

  5. Manuel says:

    George, thanks so much!!
    This saved us hours!!

  6. Buruc says:

    Hi, same issue here. My flow has trigger as recuurency and some connections in the steps. Tge workaround is not working any ideas how i can find out about indexes?

    Thank you

    • George Doubinski says:

      Hey Buruc,

      not sure what’s happening on your side. I just checked – it still works for me.

      Cheers,
      George

Leave a Reply

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