Hello,
I have created a link to trigger a flow from a sharepoint list column using the code below:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"id\": \"xxxxxxxxxxxx\"}"
},
"attributes": {
"class": "ms-fontColor-themePrimary ms-fontColor-themeDarker--hover"
},
"style": {
"border": "none",
"background-color": "transparent",
"cursor": "pointer"
},
"children": [
{
"elmType": "span",
"attributes": {
"iconName": "Flow"
},
"style": {
"padding-right": "6px"
}
},
{
"elmType": "span",
"txtContent": "Print Item"
}
]}
This code works fine in one list and runs as expected, however, I'm using this exact same code in another list in the same SP site and the only difference is the ID of the flow triggered, but I am not getting the flow pane to pop up. The flow is exactly the same as the working flow, save for the differences in lists and document libraries accessed and the format code is exactly the same except for the ID.
The peculiar thing is that if I use the ID of the flow that works in the list that's having issues, I get the flow pane. However, If I use the non-working flow ID in the list that is working, I still don't get the pane.
I even created a basic flow for testing that just sends an email when triggered and I still can't the pane to show up in the non working list. I've also used the ID of that test flow in the list that's working and cannot get the pane to pop up.
It seems as if I can only use one ID for the site.
So, my question is it possible that you can only one trigger per site? I've recreated the flow and list several times to no avail and I am out of ideas.
Here's what the link looks like in the list:
Thanks
Circling back, the sharepoint list was not shared with the flow.
It's working now,
I've never seen what you have done before, but it looks really great. I will have to try to incorporate that method.
I'm just guessing, but can you try adding the SharePoint Lists/Document Library as owners of the flow?
WarrenBelz
146,605
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional