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.
Hi NikolinoDE
Thanks for your answer.
In this Json it is possible to add the option that you recommended?