Sep 22 2022 03:08 AM
Hi,
I am trying to find out if this is possible or should it even be done or an easier way.
We have a user with a Team Channel where they upload docs for a specific project but those docs also need to be uploaded to another SharePoint site. They then need to move the docs manually.
Would a flow work to copy to the docs over whenever they are created? Would it work coming from a Teams SharePoint site to a non Teams SharePoint site?
Or is there a way to change the location where docs are saved on the Team Channel itself?
Thank you.
Sep 22 2022 03:33 AM
Solution@drishm13 You can use power automate flow for this scenario:
Configure your flow like below:
You can use the flow trigger as per your requirements. Check documentation: connectors - SharePoint online
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Sep 22 2022 11:51 PM
Hi @ganeshsanap ,
This worked - thank you so much.
I just wanted to find out though - when the file is created in the new site, is there a way to bring over the person who originally uploaded the file? It seems to be bringing over the name of the person associated with the flow?
Sep 23 2022 12:42 AM
@drishm13 You can update the created by and modified by column values using SharePoint REST API and Send an HTTP request to SharePoint action:
Sample flow:
Other references: validateupdatelistitem using rest to update User field
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Sep 22 2022 03:33 AM
Solution@drishm13 You can use power automate flow for this scenario:
Configure your flow like below:
You can use the flow trigger as per your requirements. Check documentation: connectors - SharePoint online
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.