cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Microsoft russrimm
Microsoft

Trying to create a Sharepoint List

Hi all,

I'm working on trying to create a Flow that will create a new Sharepoint list.  I've created the app registration and granted it sites.ReadWrite.all application permissions, and in my Flow i'm using the client ID, tenant ID, and secret key and successfully getting a token and parsing json to get all the returned values.  


When I try to do the POST to actually create the SPList using the Headers: Authorization with the dynamically returned values for <token_type> and <access_token> to the URI https://graph.microsoft.com/v1.0/sites/{mysiteID}/lists, I'm getting a 401 unauthorized with

"code": "InvalidAuthenticationToken",
"message": "CompactToken parsing failed with error code: 80049217",
 
I was able to successfully create the list using Graph explorer logged in as myself using the same URI.
 
What am I missing?
 
Thanks in advance!
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Trying to create a Sharepoint List

2 REPLIES 2
Super User
Super User

Re: Trying to create a Sharepoint List

Highlighted
Microsoft russrimm
Microsoft

Re: Trying to create a Sharepoint List

Thanks!! That's what I needed, I was doing it the hard way - requesting a Graph token and authenticating via an the AAD app I created.

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (5,111)