Flow button in Modern Document Library Web Part

%3CLINGO-SUB%20id%3D%22lingo-sub-313534%22%20slang%3D%22en-US%22%3EFlow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313534%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20working%20on%20a%20modern%20Team%20Site.%26nbsp%3B%20I%20have%20followed%20the%20instructions%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fdeclarative-customization%2Fcolumn-formatting%23create-a-button-to-launch-a-flow%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E%20to%20create%20a%20button%20in%20a%20document%20library%20to%20run%20a%20flow%20on%20a%20specific%20document%2C%20and%20this%20works%20perfectly%20in%20the%20library.%26nbsp%3B%20However%2C%20I%20also%20have%20a%20page%20where%20there%20is%20a%20document%20library%20web%20part%20and%20I%20want%20users%20to%20be%20able%20to%20run%20the%20flow%20using%20this%20button%20from%20this%20page.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20doesn't%20seem%20to%20be%20possible%20as%20the%20button%20does%20nothing%20when%20clicked%20on%20the%20web%20part.%26nbsp%3B%20From%20what%20I've%20read%20it%20doesn't%20look%20like%20there's%20any%20workaround%20for%20this%20so%20I%20wanted%20to%20double%20check%20that%20no-one%20else%20has%20found%20a%20way%20around%20it.%26nbsp%3B%20These%20pages%20show%20multiple%20document%20libraries%20so%20I%20don't%20really%20want%20to%20have%20to%20ask%20the%20users%20to%20go%20into%20each%20library%20every%20time%20they%20want%20to%20run%20the%20flows.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'd%20be%20grateful%20if%20anyone%20has%20any%20pointers%20or%20has%20come%20across%20this%20issue%20themselves.%26nbsp%3B%20Thanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-313534%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%20Flow%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-361821%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-361821%22%20slang%3D%22en-US%22%3E%3CP%3EI%20followed%20the%20same%20Microsoft%20Docs%20yesterday%20to%20add%20a%20Flow%20trigger%20button%20in%20a%20SharePoint%20list%20only%20to%20find%20that%20it%20doesn't%20work%20in%20web%20part%20-%20very%20disappointing.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20display%20the%20list%20in%20a%20page%20alongside%20instructions%20of%20how%20to%20add%20an%20item%2C%20then%20send%20a%20summary%20of%20that%20item%20via%20email%20(Flow).%20It's%20awkward%20to%20explain%20to%20end%20users%20that%20they%20can%20do%20most%20of%20the%20features%20from%20inside%20a%20page%20but%20then%20have%20to%20go%20into%20the%20list%20to%20trigger%20the%20button.%20I%20will%20add%20the%20same%20info%20to%20the%20uservoice.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-329626%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-329626%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20Gareth%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFYI%2C%20had%20raised%20this%20question%20to%20Laura%2C%20the%20Flow%20expert%20through%20tweet%20and%20she%20responded%20that%20this%20is%20a%20known%20issue%20and%20not%20sure%20when%20it%20is%20going%20to%20get%20fixed.%20You%20can%20check%20my%20%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Farjunumenon%2Fstatus%2F1091323782730473478%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Etweet%20question%3C%2FA%3E.%3C%2FP%3E%3CP%3EThx.%3C%2FP%3E%3CP%3EArjun%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-329318%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-329318%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Gareth.%20Same%20here.%20I%20did%20a%20recent%20implementation%20for%20the%20same%20and%20was%20struggling%20for%202%20days%20for%20having%20this%20functionality%20since%20my%20users%20also%20needed%20that.%20Thanks%20anyways%20for%20the%20update.%3C%2FP%3E%3CP%3EIt%20is%20unfortunate%20that%20we%20do%20not%20have%20that%20from%20the%20List%20View%20Webpart.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBTB%2C%20I%20have%20%2B%20voted%20for%20your%20user%20voice.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EArjun%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-329275%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-329275%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Arjun%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%20unfortunately%20I%20couldn't%20find%20any%20way%20of%20constructing%20a%20full%20URL%20to%20fire%20the%20flow.%26nbsp%3B%20I've%20looked%20at%20a%20few%20resources%20from%20Microsoft%20but%20to%20be%20honest%20there%20wasn't%20much%20documentation%20on%20this%20that%20I%20could%20find.%26nbsp%3B%20For%20the%20time%20being%20I've%20been%20telling%20my%20users%20that%20if%20they%20want%20the%20button%20functionality%20it%20needs%20to%20be%20within%20a%20library%20rather%20than%20pages.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20unfortunate%20because%20the%20functionality%20works%20really%20well%20and%20we%20have%20several%20use%20cases%20for%20it.%26nbsp%3B%20I'm%20hoping%20that%20Microsoft%20add%20the%20ability%20for%20the%20buttons%20to%20fire%20on%20pages%20fairly%20soon.%26nbsp%3B%20I've%20also%20created%20a%20%3CA%20href%3D%22https%3A%2F%2Fsharepoint.uservoice.com%2Fforums%2F329214-sites-and-collaboration%2Fsuggestions%2F36709321-ability-to-run-flow-from-library-list-webpart%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Esuggestion%3C%2FA%3E%20in%20UserVoice%20if%20anyone%20would%20like%20to%20vote%20for%20it%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-329260%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-329260%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Gareth%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20also%20in%20similar%20case%20where%20I%20need%20to%20trigger%20flow%20from%20List%20View%20Webpart.%20Did%20you%20get%20a%20solution%20based%20on%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%26nbsp%3B's%20suggestion.%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20Yes%2C%20can%20you%20let%20us%20know%20the%20approach%20which%20you%20did.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3CP%3EArjun%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313767%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313767%22%20slang%3D%22en-US%22%3E%3CP%3EThat's%20great%20thanks%20Chris.%26nbsp%3B%20I'll%20take%20a%20look%20to%20see%20if%20I%20can%20find%20the%20full%20URL%20and%20test%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313747%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313747%22%20slang%3D%22en-US%22%3ESo%20I'm%20thinking%2C%20if%20you%20can%20add%20hard%20code%20the%20rest%20of%20the%20site%20URL%20where%20the%20flow's%20exist.%20Then%20that%20should%20pass%20to%20the%20page%20you%20are%20using%20the%20webparts%20and%20should%20be%20able%20to%20file%20in%20that%20context.%20So%20instead%20of%20just%20%5Cid%5C09250932r3%20you%20could%20figure%20out%20where%20that%20id%20is%20in%20the%20URL%20and%20have%20the%20whole%20URL%20there%2C%20so%20%3CA%20href%3D%22https%3A%2F%2Ftenant.sharepoint.com%2Fsites%2F_whatever%2Fid%2Fflowidhere%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%2Fsites%2F_whatever%2Fid%2Fflowidhere%3C%2FA%3E%20etc.%20Cause%20right%20now%20I%20think%20it's%20just%20kind%20of%20adding%20on%20to%20the%20existing%20URL%20of%20the%20page%20your%20on%2C%20and%20since%20you're%20on%20a%20different%20page%20with%20parts%20need%20to%20get%20that%20hard%20coded%20in..%20Make%20sense%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313740%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313740%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20Chris.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20formatting%20for%20the%20button%20action%20section%20is%20below%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22txtContent%22%3A%20%22Run%20Flow%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22customRowAction%22%3A%20%7B%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22action%22%3A%20%22executeFlow%22%2C%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22actionParams%22%3A%20%22%7B%5C%22id%5C%22%3A%20%5C%223d12dc3e-7d64-4e77-8dd2-876348cb187b%5C%22%7D%22%3CBR%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%7D%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20corresponding%20HTML%20is%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBUTTON%20tabindex%3D%22%26quot%3B0%26quot%3B%22%20style%3D%22%26quot%3Bborder%3Anone%3Bbackground-color%3Atransparent%3Bcolor%3A%230078d7%3Bcursor%3Apointer%3B%26quot%3B%22%20data-actionparams%3D%22'%7B%26quot%3Bid%26quot%3B%3A%22%3E3d12dc3e-7d64-4e77-8dd2-876348cb187b%22%7D'%20data-actionname%3D%22executeFlow%22%20data-iscustomformatter%3D%22true%22%26gt%3BRun%20Flow%3C%2FBUTTON%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313726%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313726%22%20slang%3D%22en-US%22%3EOh%2C%20I%20see%20what%20you%20mean%2C%20so%20you%20do%20get%20the%20view%20to%20show%20correctly%20in%20the%20webpart%20on%20the%20page%2C%20it%20just%20doesn't%20fire%20for%20whatever%20reason%20like%20it%20does%20in%20the%20view%20if%20you%20go%20into%20the%20library%20itself%3F%20Like%20you%20said%20there%20must%20be%20some%20context%20link%20there%20in%20the%20URL%20that%20it%20uses%20and%20probably%20how%20it%20renders%20the%20item%20%2F%20URL%20with%20the%20column%20formatting.%20Can%20you%20paste%20the%20section%20of%20the%20button%20so%20I%20can%20see%20what%20the%20URL%20it's%20calling%20looks%20like%20when%20clicking%20the%20button%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313721%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313721%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20link%20you%20posted%20is%20what%20I%20used%20when%20creating%20my%20button%20and%20I%20can%20create%20one%20in%20both%20a%20list%20and%20library.%26nbsp%3B%20The%20button%20also%20shows%20up%20when%20viewing%20the%20list%2Flibrary%20in%20a%20web%20part%20on%20a%20page%20but%20my%20problem%20is%20if%20I%20click%20the%20button%20on%20the%20web%20part%20it%20does%20nothing%2C%20where%20if%20I%20click%20it%20directly%20in%20the%20list%20or%20library%20it%20fires.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20wondered%20if%20it's%20possible%20to%20get%20a%20Flow%20to%20fire%20on-demand%20like%20this%20using%20a%20list%20or%20library%20web%20part.%26nbsp%3B%20I%20assume%20it's%20not%20as%20you%20don't%20get%20the%20context%20menu%20options%20to%20do%20anything%20with%20flows%20in%20the%20web%20parts%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313708%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313708%22%20slang%3D%22en-US%22%3ESo%20the%20list%20webpart%20supports%20column%20formatting%2C%20so%20I%20would%20assume%20so%20does%20the%20Document%20library%20webpart.%20Look%20into%20adding%20a%20button%20using%20that.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwonderlaura.com%2F2018%2F07%2F18%2Fbutton-in-sharepoint-list-to-trigger-microsoft-flow%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwonderlaura.com%2F2018%2F07%2F18%2Fbutton-in-sharepoint-list-to-trigger-microsoft-flow%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-961989%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-961989%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F190353%22%20target%3D%22_blank%22%3E%40Gareth%20Jayne%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%22ve%20the%20same.%20When%20will%20Microsoft%20fix%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2196188%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20button%20in%20Modern%20Document%20Library%20Web%20Part%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2196188%22%20slang%3D%22en-US%22%3EJust%20wanted%20to%20add%20a%20voice%20that%20I%20discovered%20this%20same%20limitation%20myself%20today%20(list%20web%20part%20doesn't%20fire%20the%20flow%2C%20but%20the%20flow%20does%20run%20when%20you're%20in%20the%20context%20of%20the%20list%20view%20within%20the%20list).%20Hope%20for%20a%20resolution%20soon!%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi everyone

 

I am working on a modern Team Site.  I have followed the instructions here to create a button in a document library to run a flow on a specific document, and this works perfectly in the library.  However, I also have a page where there is a document library web part and I want users to be able to run the flow using this button from this page.

 

This doesn't seem to be possible as the button does nothing when clicked on the web part.  From what I've read it doesn't look like there's any workaround for this so I wanted to double check that no-one else has found a way around it.  These pages show multiple document libraries so I don't really want to have to ask the users to go into each library every time they want to run the flows.

 

I'd be grateful if anyone has any pointers or has come across this issue themselves.  Thanks in advance.

14 Replies
So the list webpart supports column formatting, so I would assume so does the Document library webpart. Look into adding a button using that.

https://wonderlaura.com/2018/07/18/button-in-sharepoint-list-to-trigger-microsoft-flow/

@Chris Webb

 

Thanks for the reply.

 

The link you posted is what I used when creating my button and I can create one in both a list and library.  The button also shows up when viewing the list/library in a web part on a page but my problem is if I click the button on the web part it does nothing, where if I click it directly in the list or library it fires.

 

I wondered if it's possible to get a Flow to fire on-demand like this using a list or library web part.  I assume it's not as you don't get the context menu options to do anything with flows in the web parts?

Oh, I see what you mean, so you do get the view to show correctly in the webpart on the page, it just doesn't fire for whatever reason like it does in the view if you go into the library itself? Like you said there must be some context link there in the URL that it uses and probably how it renders the item / URL with the column formatting. Can you paste the section of the button so I can see what the URL it's calling looks like when clicking the button?

Thanks Chris.

 

The formatting for the button action section is below:

 
      "txtContent": "Run Flow",
      "customRowAction": {
        "action": "executeFlow",
        "actionParams": "{\"id\": \"3d12dc3e-7d64-4e77-8dd2-876348cb187b\"}"
      } 

 

The corresponding HTML is:

 

<button tabindex="0" style="border:none;background-color:transparent;color:#0078d7;cursor:pointer;" data-actionparams='{"id": "3d12dc3e-7d64-4e77-8dd2-876348cb187b"}' data-actionname="executeFlow" data-iscustomformatter="true">Run Flow</button>

So I'm thinking, if you can add hard code the rest of the site URL where the flow's exist. Then that should pass to the page you are using the webparts and should be able to file in that context. So instead of just \id\09250932r3 you could figure out where that id is in the URL and have the whole URL there, so https://tenant.sharepoint.com/sites/_whatever/id/flowidhere etc. Cause right now I think it's just kind of adding on to the existing URL of the page your on, and since you're on a different page with parts need to get that hard coded in.. Make sense?

That's great thanks Chris.  I'll take a look to see if I can find the full URL and test this.

Hi Gareth,

 

I am also in similar case where I need to trigger flow from List View Webpart. Did you get a solution based on @Chris Webb 's suggestion. 

If Yes, can you let us know the approach which you did.

 

Thanks in advance.

Arjun

Hi Arjun

 

No unfortunately I couldn't find any way of constructing a full URL to fire the flow.  I've looked at a few resources from Microsoft but to be honest there wasn't much documentation on this that I could find.  For the time being I've been telling my users that if they want the button functionality it needs to be within a library rather than pages.

 

This is unfortunate because the functionality works really well and we have several use cases for it.  I'm hoping that Microsoft add the ability for the buttons to fire on pages fairly soon.  I've also created a suggestion in UserVoice if anyone would like to vote for it :)

Thanks Gareth. Same here. I did a recent implementation for the same and was struggling for 2 days for having this functionality since my users also needed that. Thanks anyways for the update.

It is unfortunate that we do not have that from the List View Webpart. 

 

BTB, I have + voted for your user voice.

 

Regards,

Arjun

Hey Gareth,

 

FYI, had raised this question to Laura, the Flow expert through tweet and she responded that this is a known issue and not sure when it is going to get fixed. You can check my tweet question.

Thx.

Arjun

I followed the same Microsoft Docs yesterday to add a Flow trigger button in a SharePoint list only to find that it doesn't work in web part - very disappointing.

 

I need to display the list in a page alongside instructions of how to add an item, then send a summary of that item via email (Flow). It's awkward to explain to end users that they can do most of the features from inside a page but then have to go into the list to trigger the button. I will add the same info to the uservoice. 

@Gareth Jayne 

I"ve the same. When will Microsoft fix this?

Just wanted to add a voice that I discovered this same limitation myself today (list web part doesn't fire the flow, but the flow does run when you're in the context of the list view within the list). Hope for a resolution soon!
The URL to run a flow is almost the same as the URL to edit the flow.
If the Edit URL is:
https://<region>.flow.microsoft.com/manage/environments/<environment guid>/flows/shared/<flow guid>/details
Then the Run URL is:
https://<region>.flow.microsoft.com/manage/environments/<environment guid>/flows/shared/<flow guid>/run

Just change the /details to /run.
Now, it doesn't launch as smoothly as you would hope, but it DOES work in a web part. You may also need to work with it to get it to pass any details of the item you want it to run against. i.e. pass in parameters from the list item.