Introduction
This article is part two. Here we will see how to create a button inside the SharePoint list for trigger power automate flow.
In the first article I created a flow that we will use in this article. You can create a button using json formatter in SharePoint modern list.
Steps to create button for trigger flow from list
Step 1. Create or open your existing List.

Step 2. Open List settings.

Step 3. Click on Create column.

Step 4. Enter Column name.

Step 5. Selected Single Line of text

Step 6. Then go to the Column Formatting.

Step 7. Copy Paste the Below code inside your Column Formatting text box.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"id\": \"edf82b44-6bbd-483f-87a1-26fdc3264a34\"}"
},
"attributes": {
"class": "ms-fontColor-themePrimary ms-fontColor-themeDarker--hover"
},
"style": {
"border": "none",
"background-color": "transparent",
"cursor": "pointer"
},
"children": [{
"elmType": "span",
"attributes": {
"iconName": "Mail"
},
"style": {
"padding-right": "16px"
}
}]
}
Step 8. Replace id of ActionParms with your flow id which we copied in the first article.
Step 9. Save your column.

Step 10. Open your list now you will see new column and inside that icons. Click on icon.

Step 11. Once you click on icon, you will get the right side panel, from that select Run Flow button.

Step 12. Once your flow is run you're able to see your flow from run page.

Output

Summary
This is how we can create a button inside the SharePoint list for trigger flow. In part one we have seen how to create flow for selected items and in this article we see how to create button inside the list for triggering flow.

Aakash MauryaPosted Nov 23, 2023, 6:36 AM
You would have included the link of the first article into this, people don't always have time to open your profile and search for the first article. Just a suggestion.
XimoPosted May 11, 2022, 3:17 PM
Thank you! What I am looking for is a Site Collection flow in a PWA instance (Project Online) that receives calls from any list in any subsite. We cannot create a flow for each list in each project, that would be like creating 400 project X 3 lists/project = 1200 flows. The goal is using your exact same approach but without a button, based on a condition in the list columns, like Created equals Modified, to trigger automatically the Site Collection flow.
XimoPosted May 10, 2022, 5:56 PM
Hi Harshad, good article! Would be possible to automatically trigger a flow when a new item is created in the list (without a button)?