cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
versydney
New Member

Flow doesn't trigger from a Sharepoint webpart

Hi,

 

I've create a flow trigger "For a Selected Item" which works fine with a Microsoft List (there is a button on one of the columns which triggers this). I am the owner of the list, flow, and the Sharepoint site. 

 

Upon adding the list (actually a view of the list) on a web part, I can see the button on the column to trigger the flow but nothing happens when I clicked. I've already set the list in the Owners and Run-only users but no luck. Does this just not work on Sharepoint pages?

 

Here's the json format of the column (so that there's a button):

 

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "button",
  "customRowAction": {
    "action": "executeFlow",
    "actionParams": "{\"id\": \"myguid\"}"
  },
  "attributes": {
    "class": "ms-fontColor-themePrimary ms-fontColor-themeDarker--hover"
  },
  "style": {
    "border": "none",
    "background-color": "transparent",
    "cursor": "pointer",
    "display": "=if([$ApprovalStatus] == 'Approved' || [$ApprovalStatus] == 'Pending' , 'none', 'display')"
  },
  "children": [
    {
      "elmType": "span",
      "attributes": {
        "iconName": "Flow"
      },
      "style": {
        "padding-right": "6px"
      }
    },
    {
      "elmType": "span",
      "txtContent": "=if([$ApprovalStatus] == 'Rejected', 'Restart Approval', 'Start Approval')"
    }
  ]
}

This is how the button looks like (just so you'd have an idea of what I'm talking about):

versydney_0-1632462046723.png

 

Anything I might have missed?

 

Thanks,

Ver

1 REPLY 1
Nicken
New Member

Have you managed to solve this? I have exactly the same problem.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,062)