web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / 401 error while trigge...
Power Automate
Unanswered

401 error while triggering flow from SharePoint list

(0) ShareShare
ReportReport
Posted on by 4

Hi, 

I am trying to start a flow from Sharepoint list. I have created custom button via JSON. And when I click the button, it throws 401 Unauthorized error in Browser console.

I created new column of Hyperlink type, and added following JSON in column formatting:

 

{
 "elmType":"button",
 "txtContent":"Duplicate",
 "customRowAction":{
 "action":"executeFlow",
 "actionParams":"='{\"id\":\"055c2cfd-78e4-4e96-8039-939962e5578a\", \"headerText\":\" ' + [$Title] + '\",\"runFlowButtonText\":\"Go\"}'"
 },
 "attributes":{
 "class":"ms-fontColor-themePrimary ms-fontColor-themeDarker--hover"
 }
}

 

 

The "id" is the flow id I got from the URL. But its throwing 401 error. Can anyone help?

Basically I want to duplicate item (row) via Power Automate.

 

Can anyone help?

Categories:
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @abdulrehmanaftb  is the flow not triggering at all due to the error? If yes can you please check the permissions of user on the list?  

  • abdulrehmanaftb Profile Picture
    4 on at

    @annajhaveri I think the button is trying to trigger the flow, but throwing 401 unauthorized error. I am the owner of the flow and have full access to that sharepoint list. 

    If you think its still can be a permission issue, can you direct me towards the right page and right permission that I need to check?

     

    Thanks.

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @abdulrehmanaftb  can you please share the screenshot of the error? To check the permissions you can go to list settings from gear button on top right corner on list page, then click on "Permissions for this list", then use check permissions option in the ribbon to check the permissions 

  • abdulrehmanaftb Profile Picture
    4 on at

    @annajhaveri here is the permissions screenshot:

    abdulrehmanaftb_3-1704803428231.png

     

     

    and here is the error screenshot:

    abdulrehmanaftb_2-1704803353175.png

     

     

    P.S. When I change the trigger and opt for "Anyone can trigger", it works. Which means the flow id is not the issue. But it's not working in case of "Any user in my tenant".

    abdulrehmanaftb_4-1704803516934.png

     

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @abdulrehmanaftb  try resetting connection in the trigger, also the user you are using in SharePoint confirm its in the same tenant which you may have already checked but you can double check

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 349 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard