cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TL_Arwen
Frequent Visitor

copying files from local location to sharepoint

I'm trying to build a flow that will take new and modified files on a local server and copy them to sharepoint. I am able to get this working for a new file by using the create file action, but I can't seem to find an action to upload the modified file.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @TL_Arwen,

 

If you want to use the Get file content action, the *file field should be file identifier, please use the Get file content using path action instead of it:

Annotation 2019-11-06 175718.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
abm
Super User
Super User

Hi @TL_Arwen 

 

Which trigger are you using it?

 

https://docs.microsoft.com/en-us/connectors/filesystem/#when-a-file-is-added-or-modified-(properties...

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
TL_Arwen
Frequent Visitor

I used When one or more files are added or modified (metadata only)

I basically used the built-in template. when I try to use the one with (properties Only) I get this error when running a test: ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerBody()' is of type 'Object'. The result must be a valid array.

Hi @TL_Arwen,

 

If the Flow happened some issue when you create, please create a new one from blank. Some template are old version, it will be conflict with some connector.

So, please recreate the trigger or create a new Flow from blank.

And now, Do you still have the issue that Flow won't trigger when a file is modified?

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I tried doing it from scratch. Still doesn't upload any changed data. Here is a SS of my flow. flow.PNG

Hi @TL_Arwen,

 

If you want to use the Get file content action, the *file field should be file identifier, please use the Get file content using path action instead of it:

Annotation 2019-11-06 175718.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

flow2.PNG

Hi @TL_Arwen,

 

Please not put the List of file Path into the Apply to each action.

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

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

PWREduCon768x460.png

Join us at PWR EduCon - A Power Platform Conference

Learn from the top Power BI, Power Apps, Power Automate & Power Virtual Agents experts!

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Users online (1,961)