Showing results for 
Search instead for 
Did you mean: 

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{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!

Accepted Solutions
Resident Rockstar
Resident Rockstar

Resident Rockstar
Resident Rockstar

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

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (52,002)