Automic Workload Automation

 View Only
  • 1.  Transfer / Move files to Sharepoint

    Posted May 22, 2020 10:58 AM
    ​Hi there, after some help.  We need to transfer / move files from systems with agents to Sharepoints where we are unable to install an agent.

    Have looked at mapping the Sharepoints from a server with an agent but it seems this breaks the company security protocols.

    Would be interested to know if and how anyone has managed to implement a solution.

    ------------------------------
    Thanks
    Rob Boyer
    Mondelez Int.
    ------------------------------


  • 2.  RE: Transfer / Move files to Sharepoint

    Posted May 22, 2020 11:45 AM
    We initially transferred files into sharepoint by drive mappings, but we found this method was unstable and couldn't be trusted.

    We now run a PowerShell script that does a webclient PUT using a sharepoint snapin.   It was complex to set up, but we haven't had any problems since this was implemented.

    ------------------------------
    Pete
    ------------------------------



  • 3.  RE: Transfer / Move files to Sharepoint
    Best Answer

    Posted May 25, 2020 01:09 AM
    It depends on whether you're running your Sharepoint as part of Office 365 (I think it's called Sharepoint Online) or as an on-premise solution.

    When you're on Office 365 I can recommend the Powershell Module SharePointPnPPowerShellOnline.

    For the on-premise version I implemented my own solution using the Microsoft REST documentation on Sharepoint (https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service?tabs=csom).

    If it's just a simple thing like an upload of a file it shouldn't take too much time. In my implementation it's a HTTP POST operation.

    ------------------------------
    Swisscom Automation Engineer & PE Membership Creator

    Entfessle mehr Automic Wissen mehr Automic Tools
    https://membership.philippelmer.com/
    ------------------------------