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

Fill a list with http request

I have created a folder for each customer I have. And each customer has a list related. So each time I create a folder (invoices) inside those, I need to repeat this list for each invoice. So in my flow I need to fill it with http request, I guess.

 

So, I read the main list, get the value I want to copy. I set the name of the new list, with the name of the invoice. Set the values as I understand it has to be.

 

I got the 401 error unauthorized.  Also I tried to use CREATE AN ITEM and modified it, out of Flow, with a JSON editor, but I failed. 

I searched around the forum, but I cant complete this task.

Sin título.png 

I hope, I explained it correctly, if you can give me a complete example it will be great.

 

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions
Dalyla
Level: Powered On

Re: Fill a list with http request

I tried and searched a lot, and now I'm happy because I got it.

So the errors were the URI, because I changed it a lot of times.

Also the headers, to not use a token we can use X-RequestDigest with value $("#__REQUESTDIGEST").val().

So my connections weren't failed, just the code.

 

So here's the complete code to copy item of a father list and copy to another dynamically

l01.pngL02.pngL03.pngL04.png

so this is insice apply each after value.

lalal.png

 

View solution in original post

5 REPLIES 5
Community Support Team
Community Support Team

Re: Fill a list with http request

Hi @Dalyla,

 

If the error message contains Unauthorized or an error code of 401 appears, you can usually fix an authentication error by updating the connection:

  1. At the top of the web portal, click or tap the gear icon to open the Settings menu, and then click or tap Connections.

  2. Scroll to the connection for which you saw the Unauthorized error message.

  3. Next to the connection, click or tap the Verify password link in the message about the connection not being authenticated.

  4. Verify your credentials by following the instructions that appear, return to your flow-run failure, and then click or tap Resubmit.

    The flow should now run as expected.

You could also take a try with "Create item" action instead of the http request.

 

Best regards,

Community Support Team _ Alice Zhang
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: Fill a list with http request

Hello @v-yuazh-msft,

 

I already tried that, but it doesn't appear to me. I'm suppoused to be admin and owner. Also I sign out and in, and still getting the same error.

 

At least this isn't where I have to verify it.

conn.png

Dalyla
Level: Powered On

Re: Fill a list with http request

Somebody has a complete example?

Dalyla
Level: Powered On

Re: Fill a list with http request

Hi @v-yuazh-msft,

 

I also tried deleting the connection, create another and link it with each step needed.

Also I tried with another user admin with more privileges than me.

Please help, it's been a while I can finish this.

 

thanks in advance

Dalyla
Level: Powered On

Re: Fill a list with http request

I tried and searched a lot, and now I'm happy because I got it.

So the errors were the URI, because I changed it a lot of times.

Also the headers, to not use a token we can use X-RequestDigest with value $("#__REQUESTDIGEST").val().

So my connections weren't failed, just the code.

 

So here's the complete code to copy item of a father list and copy to another dynamically

l01.pngL02.pngL03.pngL04.png

so this is insice apply each after value.

lalal.png

 

View solution in original post

Helpful resources

Announcements
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 (5,198)