0

I'm creating a Logic App to copy pdf files from a URL like https://somedomain.com/somefolder/FileToCopy.pdf to a document library in SharePoint Online.

My problem is that I don't know which action to use. Since the source file is outside SharePoint, I can't use any SharePoint actions.

Any ideas?

0

You could create a connection to SharePoint Online in logic app. A connection provides connectivity between a logic app and another service.

We can use the SharePoint Online connector to manage SharePoint lists.

We can use SharePoint online triggers and SharePoint online actions to copy files.

For more detailed information, refer to the article below.

Get started with the SharePoint Online connector.

https://docs.microsoft.com/en-us/azure/connectors/connectors-create-api-sharepointonline

  • I have a connection and a trigger. I can move documents between SharePoint libraries with a "SharePoint Copy File" action, but I can't find an action to copy documents from a location outside SharePoint to a SharePoint library. That's my issue, sorry if it was unclear. Thanks for your effort though. – Papageno Dec 15 '17 at 9:45
  • I am afraid the files from the location outside sharepoint cannot be copied to sharepoint library through logic app. – Amy_MSFT Dec 15 '17 at 12:53
  • Then I guess my question has been answered. – Papageno Dec 20 '17 at 12:05
0

This can be done using the 'Get file content'(Azure File Storage) action.

Pass the source file location to it, then you will be able to pass the 'File Content' variable from that action, into your 'Create file' (SharePoint) action.

enter image description here

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.