Sharepoint 2013 designer workflow to copy library document to library another site

Elmata 136 Reputation points
2020-12-01T18:54:49.383+00:00

Hello,
I would like to know if it's possible to copy a single document from a site library to a library of an another site.
Between site collections, subsite to parent, parent to subsite or subsite to subsite...
This seems work between libraries located in the same site only.
Otherwise, does it exist a solution to copy the last created document according to a flag information Y or N.
Any help is welcome
Regards,
EM

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,236 questions
{count} votes

Accepted answer
  1. Jerry Xu-MSFT 7,926 Reputation points
    2020-12-02T02:17:38.383+00:00

    Hi, @Elmata ,

    For copying documents between site collections, you can use the built-in send-to button in the files ribbon. And you can even manage the copies in other site collections with the original one.

    44106-image.png

    You can get more information about this feature here: https://support.microsoft.com/en-us/office/using-send-to-in-sharepoint-server-3fe1c568-021c-4c6b-a6c2-d55e6a3518de?ui=en-US&rs=en-US&ad=US

    For the automatically copy file to another library with a flag, you may try to copy the file via Rest API in the workflow if not using any 3rd party solutions. As you have known, the built-in copy document action does not work cross sites. It will be tricky and complicated. Here is an example you can refer to: http://johnliu.net/blog/2014/2/19/using-sharepoint-designer-2013-workflow-to-copy-file-via-res.html


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Elmata 136 Reputation points
    2020-12-14T08:28:27.82+00:00

    Hi,
    The ribbon solution doesn't answer to my needs because all of my documents haven't to be copied from A to B.
    Rest API seems to be the only solution.
    Thanks a lot !
    Have a nice day.
    Regards,
    EM

    0 comments No comments