'For a selected item' flow as an action in a PowerApp?

%3CLINGO-SUB%20id%3D%22lingo-sub-480872%22%20slang%3D%22en-US%22%3E'For%20a%20selected%20item'%20flow%20as%20an%20action%20in%20a%20PowerApp%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-480872%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20All%2C%3C%2FP%3E%3CP%3EI've%20created%20a%20flow%20that%20works%20off%20the%20%22For%20a%20Selected%20Item%22%20and%20it%20works%20well.%26nbsp%3B%20The%20SharePoint%20item%2C%20we%20start%20from%20has%20a%20customized%20PowerApp%20form%20setup.%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20put%20a%20button%20on%20the%20PowerApp%20form%20that%20launches%20the%20%22For%20a%20Selected%20Item%22%20flow%3F%3C%2FP%3E%3CP%3EWhen%20I%20add%20the%20action%20to%20a%20button%2C%20it%20tells%20me%20that%20there%20are%20no%20flows%20and%20prompts%20me%20to%20create%20one.%26nbsp%3B%20If%20I%20create%20one%20from%20Scratch%2C%20it%20doesn't%20let%20me%20pull%20in%20the%20details%20as%20I%20do%20on%20my%20existing%20Flow.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20suggestions%3F%26nbsp%3B%20Or%20is%20this%20a%20new%20idea%3F%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3EScott%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-480872%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-482985%22%20slang%3D%22en-US%22%3ERe%3A%20'For%20a%20selected%20item'%20flow%20as%20an%20action%20in%20a%20PowerApp%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-482985%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F140414%22%20target%3D%22_blank%22%3E%40Muhammad%20Hassan%20Nawaz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20done%20that%20but%20my%20users%20aren't%20generally%20in%20the%20list%20when%20they%20interact%20with%20the%20list%20items.%20They%20get%20a%20link%20to%20the%20item%20and%20then%20work%20from%20the%20powerapp.%3C%2FP%3E%3CP%3EI%20was%20hoping%20to%20not%20have%20them%20leave%20the%20PowerApp%20when%20they%20work%20with%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-482479%22%20slang%3D%22en-US%22%3ERe%3A%20'For%20a%20selected%20item'%20flow%20as%20an%20action%20in%20a%20PowerApp%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-482479%22%20slang%3D%22en-US%22%3EBut%20you%20can%20run%20flow%20for%20a%20selected%20item%20using%20column%20formatting%20by%20using%20action%20button%20to%20gave%20this%20button%20flow%20id.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-482475%22%20slang%3D%22en-US%22%3ERe%3A%20'For%20a%20selected%20item'%20flow%20as%20an%20action%20in%20a%20PowerApp%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-482475%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F437%22%20target%3D%22_blank%22%3E%40Scott%20Perley%3C%2FA%3E%26nbsp%3Bbut%20you%20can%20run%20flow%20by%20using%20column%20fromatting%20for%20a%20selected%20item.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-481383%22%20slang%3D%22en-US%22%3ERe%3A%20'For%20a%20selected%20item'%20flow%20as%20an%20action%20in%20a%20PowerApp%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-481383%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F177418%22%20target%3D%22_blank%22%3E%40Matt%20Weston%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'll%20try%20those%20suggestions%20out.%26nbsp%3B%20I%20like%20the%20idea%20of%20the%20sub-flow.%26nbsp%3B%20It's%20not%20something%20I've%20done%20yet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20flow%20that%20I%20run%20today%2C%20prompts%20the%20user%20for%20a%20couple%20more%20details%20that%20are%20not%20available%20on%20the%20selected%20item%20and%20then%20generates%20a%20document%20(populate%20a%20word%20doc)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20hoping%20that%20because%20I%20am%20effectively%20working%20with%20an%20item%2C%20it%20could%20be%20considered%20the%20%22selected%20item%22%20and%20would%20then%20work%20the%20same%20as%20doing%20it%20from%20the%20list%20view.%26nbsp%3B%20Our%20users%20work%20from%20a%20webpart%20looking%20at%20the%20individual%20item%20and%20rarely%20visit%20the%20list%20view.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-481375%22%20slang%3D%22en-US%22%3ERe%3A%20'For%20a%20selected%20item'%20flow%20as%20an%20action%20in%20a%20PowerApp%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-481375%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F140414%22%20target%3D%22_blank%22%3E%40Muhammad%20Hassan%20Nawaz%3C%2FA%3E%26nbsp%3B%20That's%20what%20I%20was%20afraid%20of...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-481008%22%20slang%3D%22en-US%22%3ERe%3A%20'For%20a%20selected%20item'%20flow%20as%20an%20action%20in%20a%20PowerApp%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-481008%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F437%22%20target%3D%22_blank%22%3E%40Scott%20Perley%3C%2FA%3E%26nbsp%3B%2C%20the%20reason%20for%20this%20is%20because%20the%20%22For%20a%20selected%20item%22%20trigger%20is%20tied%20to%20SharePoint%2C%20whereas%20when%20you%20put%20a%20PowerApp%20in%20place%20you%20can%20only%20interact%20directly%20with%20Flows%20which%20have%20a%20PowerApp%20trigger.%20I%20will%20have%20a%20look%20to%20see%20if%20there's%20anything%20which%20can%20be%20done%20to%20change%20that%2C%20but%20as%20far%20as%20I%20know%20there's%20not.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20it%20might%20be%20worth%20considering%20your%20options%2C%20which%20I'll%20keep%20quite%20high%20level%20as%20I%20don't%20know%20the%20ins%20and%20outs%20of%20your%20solution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20Change%20you%20trigger%20so%20that%20it%20runs%20on%20something%20happening%20on%20the%20list%20item%20-%20this%20unfortunately%20means%20that%20you%20can't%20directly%20fire%20the%20Flow%20from%20your%20SharePoint%20list%20or%20from%20your%20PowerApp.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Consider%20using%20a%20sub-flow%20type%20architecture%20where%20you%20have%20a%20Flow%20which%20contains%20your%20main%20logic%20which%20is%20then%20called%20by%20two%20other%20Flows%3A%20one%20against%20the%20When%20an%20item%20is%20selected%20for%20the%20SharePoint%20list%2C%20and%20one%20on%20a%20PowerApps%20trigger%20for%20your%20PowerApps%20form.%20This%20way%2C%20the%20bulk%20of%20the%20functionality%20is%20stored%20centrally%2C%20but%20you%20can%20still%20call%20it%20from%20different%20areas.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20that%20helps%2C%20and%20if%20you%20need%20any%20more%20info%20please%20let%20me%20know.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-481005%22%20slang%3D%22en-US%22%3ERe%3A%20'For%20a%20selected%20item'%20flow%20as%20an%20action%20in%20a%20PowerApp%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-481005%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20We%20only%20trigger%20the%20flow%20which%20starts%20from%20the%20PowerApps%20.%20I%20think%20we%20cannot%20trigger%20the%20list%20item%20flow%20from%20PowerApps%20untill%20you%20start%20create%20it%20from%20PowerApps.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hey All,

I've created a flow that works off the "For a Selected Item" and it works well.  The SharePoint item, we start from has a customized PowerApp form setup.

Is there a way to put a button on the PowerApp form that launches the "For a Selected Item" flow?

When I add the action to a button, it tells me that there are no flows and prompts me to create one.  If I create one from Scratch, it doesn't let me pull in the details as I do on my existing Flow.

 

Any suggestions?  Or is this a new idea?

Thanks

Scott

7 Replies

Hi, We only trigger the flow which starts from the PowerApps . I think we cannot trigger the list item flow from PowerApps untill you start create it from PowerApps.

Hi @Scott Perley , the reason for this is because the "For a selected item" trigger is tied to SharePoint, whereas when you put a PowerApp in place you can only interact directly with Flows which have a PowerApp trigger. I will have a look to see if there's anything which can be done to change that, but as far as I know there's not.

 

So it might be worth considering your options, which I'll keep quite high level as I don't know the ins and outs of your solution.

 

1. Change you trigger so that it runs on something happening on the list item - this unfortunately means that you can't directly fire the Flow from your SharePoint list or from your PowerApp.

 

2. Consider using a sub-flow type architecture where you have a Flow which contains your main logic which is then called by two other Flows: one against the When an item is selected for the SharePoint list, and one on a PowerApps trigger for your PowerApps form. This way, the bulk of the functionality is stored centrally, but you can still call it from different areas.

 

I hope that helps, and if you need any more info please let me know.

Thanks @Muhammad Hassan Nawaz  That's what I was afraid of...

Thanks @Matt Weston 

 

I'll try those suggestions out.  I like the idea of the sub-flow.  It's not something I've done yet.

 

The flow that I run today, prompts the user for a couple more details that are not available on the selected item and then generates a document (populate a word doc)

 

I was hoping that because I am effectively working with an item, it could be considered the "selected item" and would then work the same as doing it from the list view.  Our users work from a webpart looking at the individual item and rarely visit the list view.

@Scott Perley but you can run flow by using column fromatting for a selected item.

But you can run flow for a selected item using column formatting by using action button to gave this button flow id.

Thanks @Muhammad Hassan Nawaz 

I have done that but my users aren't generally in the list when they interact with the list items. They get a link to the item and then work from the powerapp.

I was hoping to not have them leave the PowerApp when they work with it.