在Office Web加载项中检索sharepoint列表项

问题描述:

大家好,

我想访问office web add-ins中的sharepoint online list项目。如何使用javascript访问sharepoint之外的sharepoint在线列表项? 

I want to get access the sharepoint online list items in office web add-ins for word. How to access the sharepoint online list items outside of the sharepoint using javascript? 

谢谢,Kaviya Balasubramanian | Microsoft MVP - Office服务器和服务(请记住在帮助您的帖子上单击"标记为答案")

Thanks, Kaviya Balasubramanian | Microsoft MVP - Office Servers and Services (Please remember to click "Mark as Answer" on the post that helps you)

您好Kaviya ,

Hi Kaviya,

以下是在Word 2013任务窗格应用程序中使用JavaScript和C#连接到使用OAuth并对其进行身份验证的示例,然后根据检索到的数据创建SharePoint列表来自Word文档。

Here is an example about using JavaScript and C# in a Word 2013 task pane app to connect to and authenticate a SharePoint Online site using OAuth, and then create a SharePoint list based on data retrieved from a Word document.

您可以修改代码以获取列表项。

You can modify the code to get the list items.

https://code.msdn.microsoft.com/office/SharePoint-2013-Use-OAuth-47872a28

最好的问候,

Dennis