Forum Discussion
How to skip opening Run Flow Panel in SPO when running for selected item?
To skip the "Run Flow" panel in SharePoint Online and run the flow instantly when clicking the button for a selected item, you can use the "Start a Flow" REST API directly. Here's how you can achieve this:
- Open the SharePoint Online list where you have created the button to run the flow.
- Edit the page and edit the button configuration.
- In the button configuration, set the "OnSelect" property to the following formula:
Launch("https://<your-tenant>.sharepoint.com/sites/<site>/_layouts/15/IniWrkflIP.aspx?List=<list-id>&ID=" & ThisItem.ID & "&TemplateID=<flow-template-id>&Source=https%3A%2F%2F<your-tenant>.sharepoint.com%2Fsites%2F<site>%2FLists%2F<list-name>%2FAllItems.aspx")
Replace the following placeholders in the formula:
- <your-tenant>: Replace this with your SharePoint Online tenant name.
- <site>: Replace this with the name of the site where the list is located.
- <list-id>: Replace this with the ID of the SharePoint list.
- <flow-template-id>: Replace this with the ID of the flow template you want to run.
- <list-name>: Replace this with the name of the SharePoint list.
- Save the changes and exit the page editing mode.
Now, when you click the button for a selected item, it will directly trigger the flow without showing the "Run Flow" panel or any additional confirmation. The flow will run instantly, improving the user experience by skipping the loading time of the "Run Flow" panel.
- jpdosherMay 20, 2023Copper Contributor
I trying to do the same here, but edit button in a List? Sorry for the laziness, but i cant find it...
fgonzalez515, did you find a solution?- ganeshsanapMay 22, 2023MVP
jpdosher fgonzalez515 It is not possible using SharePoint JSON formatting. You cannot add Launch function using JSON formatting in SharePoint.
Also, I don't think there is any way to skip opening Run Flow Panel in SharePoint while using JSON formatting.
You can try below approach but it will be too much work for such simple and out of the box functionality (or you can live with the default run flow panel):
You will need coding experience for this approach.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- fgonzalez515May 15, 2023Copper Contributor
Hi NikolinoDE
Thanks for your answer.
In this Json it is possible to add the option that you recommended?