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?
Solved! Go to Solution.
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.
Hi @theJames ,
Can you confirm that the runtime values for privateURL, name, channel and team actually contain values.
Example:
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
64 | |
23 | |
16 | |
15 | |
11 |
User | Count |
---|---|
121 | |
36 | |
32 | |
28 | |
26 |