cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

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
Helper II
Helper II

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
Community Support

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.

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?

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.

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

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

It didn't work I really need help. 

Helper II
Helper II

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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 (4,208)