如何以编程方式向站点添加数据 [英] How to add data to site programmatically
问题描述
您好,
首先我要说的是,我对Sharepoint没有太多经验。我们有一个内部Sharepoint站点,用户可以访问并输入数据(少于10个字段)并运行一些关于该数据的报告。这部分一切都很好,但我被要求以
的方式提供一种以自动方式向网站添加数据的方法。这只能在某些情况下完成。大多数数据输入将由访问该网站的用户完成。
我的问题是,是否可以通过编程方式将数据添加到sharepoint网站(c#)?如果是这样,我该如何做到这一点?我是否直接将数据添加到SQL Server DB?如何识别特定sharepoint站点使用的表?
谢谢
您好
SharePoint有编程API。
我想你的意思是用户输入数据到某个列表。
如果您在本地使用SharePoint 2010,则可以使用server api或client api编写一个简单的应用程序。
您需要引用相关的dll。
以下是客户端api的示例。
Hello,
Let me start by saying that I do not have too much experience with Sharepoint. We have an in house Sharepoint site that users can go and enter data (less than 10 fields) and run some reports on that data. All is good with this part, but I was asked to come up with a way to add data in an automated way to the site. This will only be done under certain scenarios. Most of the data entry will be done by users going to the site.
My question, is it possible to add data to a sharepoint site programmatically (c#)? If so, how do I accomplish this? Do I add data directly to the SQL server DB? How do I identify the tables that are used by the particular sharepoint site?
Thanks
Hi
SharePoint has API for programming.
I think what you mean is the users enter data into certain list.
If you are using SharePoint 2010 on premise, you can write a simple application by using server api or client api.
You need to reference related dll.
Here is a example for client api.
这篇关于如何以编程方式向站点添加数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!