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

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

Re: copying files from local location to sharepoint

Hi @jordend,

 

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
Super User
Super User

Re: copying files from local location to sharepoint

Hi @jordend 

 

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!



jordend
Level: Powered On

Re: copying files from local location to sharepoint

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

jordend
Level: Powered On

Re: copying files from local location to sharepoint

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.

Community Support Team
Community Support Team

Re: copying files from local location to sharepoint

Hi @jordend,

 

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.

jordend
Level: Powered On

Re: copying files from local location to sharepoint

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

Community Support Team
Community Support Team

Re: copying files from local location to sharepoint

Hi @jordend,

 

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

jordend
Level: Powered On

Re: copying files from local location to sharepoint

flow2.PNG

Community Support Team
Community Support Team

Re: copying files from local location to sharepoint

Hi @jordend,

 

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
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

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 Solution Authors
Top Kudoed Authors
Users online (4,731)