Jan 11 2019 01:20 AM
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.
Jan 11 2019 07:09 AM
Jan 11 2019 07:23 AM
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?
Jan 11 2019 07:31 AM
Jan 11 2019 07:41 AM
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>
Jan 11 2019 07:48 AM
Jan 11 2019 08:09 AM
That's great thanks Chris. I'll take a look to see if I can find the full URL and test this.
Feb 01 2019 02:29 AM
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 @ChrisWebbTech 's suggestion.
If Yes, can you let us know the approach which you did.
Thanks in advance.
Arjun
Feb 01 2019 03:05 AM
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 🙂
Feb 01 2019 05:09 AM
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
Feb 01 2019 04:30 PM
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
Mar 06 2019 02:02 PM
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.
Oct 29 2019 02:41 AM
I"ve the same. When will Microsoft fix this?
Mar 09 2021 07:29 AM
Sep 23 2021 01:16 PM
Jan 10 2022 05:30 AM
Feb 10 2022 08:20 AM - edited Feb 10 2022 08:25 AM
Hi @mgrif0, can u elaborate on solving the button problem in list webpart? Company disabled imbedded WP, and i need List WB to be connected to other lists on the page.
Feb 10 2022 08:24 AM
May 03 2022 03:11 PM
For those who don't know how, to display a list or library in an Embed web part, add this code to the web part (replace URL with your information): <iframe width="402" height="346" frameborder="0" scrolling="no" src="https://YOURURL"></iframe>
Full details are available here.