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 unauthorised error...
Power Automate
Unanswered

401 unauthorised error when calling the SharePoint REST API on newly created SharePoint sites

(0) ShareShare
ReportReport
Posted on by 2

I have a Flow that creates a SharePoint Document Library on newly created SharePoint sites.  This worked for many months with no problems but the last few weeks it has stopped working.  Strangely, the Flow works if I log into the SharePoint site manually before running the Flow but if the site hasn't been logged into the Flow fails with a 401 unauthorized message.

 

I've tried creating a new connection reference on the step in the Flow but that hasn't fixed the issue.

 

Does anyone have any idea on how I can get around this problem?  Or why it has suddenly become a problem?

 

 

 

Categories:
  • juliepeck11 Profile Picture
    2 on at

    I believe I have now found a workaround to this issue.  In case it helps anyone else, I found that if I added a SharePoint Get Items step before my first SharePoint REST request step everything worked as expected.

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
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard