May 14 2023 11:02 AM
Hi Community,
I need help for this,
I have created button in Sharepoint Online list that runs flow for corresponding item and I would like it to be more user friendly and skip all the Run Flow Panel confirmation to really run flow and so on. It takes time to appear and load so it would be much better to simply run the flow instantly after clicking the button.
May 15 2023 12:15 AM
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:
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:
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.
May 15 2023 06:55 AM
Hi @NikolinoDE
Thanks for your answer.
In this Json it is possible to add the option that you recommended?
May 20 2023 05:44 AM
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?
May 21 2023 11:06 PM
@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.