cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Dalyla
Level: Powered On

Create a list based on another 401 error

Hello, I'm new using Flow, I've been creating a flow that creates a new list based in another one. I get the data I need, like list elements, folders. 

When the user create a folder(named as invoice) and I upload files in that library. The flow create a list based in a principal list, to use it in that new invoice. I mean all the invoices have to have the same list to do. I create a list without elements. Then I try to add the elements in apply to each. But I do this with "http send request". So, if I used to create a list, why I have an error of authentication at adding elements.

Sin título.pngSin título2.png

I guess I need http request because I cant get the elements in a new created list. I'm not sure how to make this part, and I couldnt find an answer. but, I'm sure, my variables are getting the correct data. 

I already tried sign out and in but it doesnt works. And in my conecctions doesnt appear the link to verify my password.

 

I appreciate any help.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dalyla
Level: Powered On

Re: Create a list based on another 401 error

Sorry for create another post, but I needed attention, here is the entire solution. About the error was the heather needed to use X - Request Digest - $ (" #__ REQUEST DIGEST") . val () to not use tokens and continue with the sames credentials, or whatever you call it. In the link, as a solution I put the entire flow. I hope helps someone.

 

https://powerusers.microsoft.com/t5/General-Flow-Discussion/Fill-a-list-with-http-request/m-p/236340...

View solution in original post

7 REPLIES 7
Community Support Team
Community Support Team

Re: Create a list based on another 401 error

Hi @Dalyla,

 

First there is an authentication error, probably because your connection's credentials are out of date, you could try to reconfigure the connection for this action.

The second check if you have permission to create a list in this site, if you do not have such permission, but you use your account to configure the connection of this action, then it cannot be executed successfully.

In addition, I am confused whether you want to create a list or create an item. Could you provide more explanation about your Flow configuration?

In addition, please refer to this Thread, which mentions how to use Send HTTP request to SharePoint action to create a list, please check it and see if it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Dalyla
Level: Powered On

Re: Create a list based on another 401 error

Thank you @v-bacao-msft,

 

I already created the list, the next step, is what I'm looking for, why? because I have a list, that I need to copy in each folder the user create, but related to the same folder. (Like tasks, but with some different uses).

 

My idea was create the list, then run a loop and copy one by one.

 

I have permission and also the group in. Also I tried to refresh the connection, where it says Verify Password (the possible solution I found in somewhere), but it doesn't appear to me, and I'm suppose to be an admin. And if this is not what are you proposing, I don't know how to do it, can you explain me, please?

Dalyla
Level: Powered On

Re: Create a list based on another 401 error

I was checking permissions, I'm also an owner, I really don't understand why I can add items.

Captura.JPG

The first one is as a member, the second as an owner and the last as visitor.

Also I did it manually, and it works. The List was created succesfully, I put the correct URI.

Dalyla
Level: Powered On

Re: Create a list based on another 401 error

I'm still seeking for an answer. I guess in the Deny part is where i'm blocked. I need to ask for this permission, but, when another user trigger this flow, I need them to can create, by the flows I made.

Sin título.png

Dalyla
Level: Powered On

Re: Create a list based on another 401 error

I tried what this site says, but it takes up to 24 hours, so, if this solve the problem I tell you later.

https://www.qdoscc.com/blog/sharepoint-o365-permissions-deny-add-and-customise-pages-issue

 

But you have to use the classic sharepoint admin:Captura2.JPG

Dalyla
Level: Powered On

Re: Create a list based on another 401 error

It didn't work I really need help. 

Dalyla
Level: Powered On

Re: Create a list based on another 401 error

Sorry for create another post, but I needed attention, here is the entire solution. About the error was the heather needed to use X - Request Digest - $ (" #__ REQUEST DIGEST") . val () to not use tokens and continue with the sames credentials, or whatever you call it. In the link, as a solution I put the entire flow. I hope helps someone.

 

https://powerusers.microsoft.com/t5/General-Flow-Discussion/Fill-a-list-with-http-request/m-p/236340...

View solution in original post

Helpful resources

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,056)