删除Sharepoint列表中的所有行,并替换为CSV文件中包含的所有行 [英] Delete all rows in Sharepoint list and replace with all rows contained in CSV file
本文介绍了删除Sharepoint列表中的所有行,并替换为CSV文件中包含的所有行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在这里真的很挣扎.我需要删除Sharepoint列表中的所有行,并替换为CSV文件中包含的所有行.有什么线索可以在Powershell,python,批处理中编写一个简单的脚本来完成此任务吗?
解决方案
您好,Wilsonjr5
首先,您必须访问列表并删除其中的所有项目:您可以在PowerShell中进行操作,因为您可以阅读 在这里了解如何操作.
I am really struggling here. I need to delete all rows in Sharepoint list and replace with all rows contained in CSV file. Any clue how I can write a simple script in Powershell, python, batch that would be able to accomplish this task?
解决方案
Hi Wilsonjr5.
First you have to access the list and delete all the items within: you can do it in PowerShell as you can read here.
Then you'll import items from a .CSV file using PowerShell again: read here to know how to do that.
这篇关于删除Sharepoint列表中的所有行,并替换为CSV文件中包含的所有行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文