This might be really simple but I can't figure out how to do it. I'm using Azure Data Factory v2 to copy one Excel file from SharePoint Online to Azure Blob Storage using HTTP connector and binary file format. I am following this tutorial https://docs.microsoft.com/en-us/azure/data-factory/connector-sharepoint-online-list#copy-file-from-sharepoint-online to get the bearer token and pull the file to be copied from SharePoint Online. I'm using two activities:
- GetBearerToken - gets bearer token for SharePoint Online
- CopyFromSPOToAzureStorage - using the bearer token from 1) copy an Excel file in binary format from a SharePoint Online folder into Azure Storage in binary format
I'm able to read and copy a file Dummy.xlsx but I'm having a gripe with that - the file ends up stripped of its original name and extension onto Azure Storage:
I am able to open the file in Excel, see the columns and rows and it looks fine in general. However, I would like to preserve the filename and extension and copy it as-is on the sink.