我已经知道如何将csv文件从Power BI保存到本地文件夹。但是,我需要将此csv文件自动保存到特定的Sharepoint文件夹中。
这是我过去在本地解决方案中已经应用的内容:
# 'dataset' holds the input data for this script
write.csv(dataset, "C:\\Users\\User\\Folder\\Sub_Folder\\Sub_Folder\\Sub_Folder\\Sub_Folder\\Sub_Folder\\Sub_folder\\File.csv")
这是我要在Sharepoint中保存文件的新内容:
# 'dataset' holds the input data for this script
write.csv(dataset, ""\\\\XXXXX.sharepoint.com\\Folder\\Sub_Folder\\Sub_Folder\\Sub_Folder\\Sub_Folder\\Sub_Folder\\Sub_Folder\\File.csv")`enter code here`
我还尝试在共享点站点的末尾使用@SSL
,但仍然出现错误。
# 'dataset' holds the input data for this script
write.csv(dataset, ""\\\\XXXXX.sharepoint.com@SSL\\Folder\\Sub_Folder\\Sub_Folder\\Sub_Folder\\Sub_Folder\\Sub_Folder\\Sub_Folder\\File.csv")