cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
theJames
Regular Visitor

OneDrive Upload file from URL will not accept dynamic inputs

My flow is intended to

1) receive an http post with a JSON that include a file's web url, name, team, and channel.

2) upload that file from the url to OneDrive

3) Create a new file in Sharepoint from the OneDrive file.

 

If I skip step 1 and in "Upload file from URL" enter plain text for the source and destination, the flow works as intended. If I use dynamic content produced by step 1 or by "Compose" elements that use data from step 1, the flow errors out with "A value must be provided for source path" because it is ignoring the dynamic values passed to step 2. This seems like a bug, but I'm really hoping I just did something wrong because I can't find any other way to getting files from an external URL into SharePoint without first downloading locally. Is there some way to fix this?

theJames_1-1652652631269.png

 

theJames_0-1652652623077.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

That pointed me in the right direction @ekarim2020. Even though the flow was parsing attributes from the Json to be selected for use in following steps, they were being output as files instead of text. I used a "json(string(triggerOutputs()['body'])).____" expression to compose each attribute, and now everything works beautifully.  

theJames_0-1653143535689.png

 

View solution in original post

2 REPLIES 2
ekarim2020
Super User
Super User

Hi @theJames ,

 

Can you confirm that the runtime values for privateURL, name, channel and team actually contain values.

 

Example:

 

Snag_1b5db5e.png

Snag_1b60abb.png


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

That pointed me in the right direction @ekarim2020. Even though the flow was parsing attributes from the Json to be selected for use in following steps, they were being output as files instead of text. I used a "json(string(triggerOutputs()['body'])).____" expression to compose each attribute, and now everything works beautifully.  

theJames_0-1653143535689.png

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,138)