Tag: 共享点

如何构build/获取SharePoint文档的Office Web App URL

我正在尝试为我的SharePoint文档获取正确的redirectURL,然后我可以使用它在iOS的WebView中打开文档。 目前,我正在为文档在WebView内呈现为PDF(Image / Readonly)的文档提供绝对URL。 而我想redirect到办公室的webapp。 现在我的问题是我不知道如果办公室的Web应用程序的URL是我可以构造像附加/_layouts/15/WopiFrame.aspx?sourcedoc=或基于安装的URL定制,我们需要调用一些Sharepoint API将让我们知道Wopi服务的基本URL是什么。 目前我传递的url类似于 – https://.sharepoint.com/Shared%20Documents/demo/demo.docx而我想传递URL – https://.sharepoint.com/_layouts/15/WopiFrame.aspx? sourcedoc = /共享%20Documents /演示/ demo.docx 期待帮助。 在此先感谢Vishwesh

使用底层Web服务将文档上传到Sharepoint Library

我正尝试将文档上传到iOS的Sharepoint文档库,并取得了有限的成功。 我已经使用Copy.CopyIntoItems至less让我的文档出现在目标文档库,使用这个肥皂请求: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <CopyIntoItems xmlns="http://schemas.microsoft.com/sharepoint/soap/"> <SourceUrl>[server url]</SourceUrl> <DestinationUrls><string>[server url]</string></DestinationUrls> <Fields></Fields> <Stream>[base 64 encoded string]</Stream> </CopyIntoItems> </soap:Body> </soap:Envelope> 这让我至less有我的文件出现在我的图书馆。 但是,响应不会给我任何有关它们的元数据(比如GUID等),这使得我很难pipe理。 此外,在浏览器中查看项目时,我还有其他操作选项,如“查看源项目”,以及在删除额外提示时指出“此项目已从其他位置复制…”。 由于大部分使用SharePoint的Bob都只会混淆它们。 理想情况下,文档的操作与直接通过浏览器中的文档库上传时看起来相同。 透明度越高越好。 我在网上看到的其他常见解决scheme是使用Lists.UpdateListItems和Lists.AddAttachment的组合。 我已经得到了Lists.UpdateListItems正常工作,并创build一个新的条目(这是很好,因为它使我的元数据像GUID,至less乍一看似乎与表单上传的文档相同)。 但是,Lists.AddAttachment不适用于我。 对AddAttachment使用此SOAP请求(GUID是UpdateListItems中新添加的项目的GUID): <?xml version="1.0" ?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Body> <AddAttachment xmlns="http://schemas.microsoft.com/sharepoint/soap/"> <listName>Test</listName> <listItemID>{1F214D95-B92B-4E10-8B96-4B04DC6DA9B6}</listItemID> <fileName>screenshot.png</fileName> <attachment>[base 64 string]</attachment> </AddAttachment> </soap:Body> </soap:Envelope> 我得到以下回应: <?xml […]

在运行时dynamic创build核心数据模型

运行时是否可以从服务器上的一组实体生成核心数据模型? 例如SharePoint列表或SQL / MySQL / Parse。 我正在尝试使用dynamic路由,因为将来可能会随时添加SharePoint列表/ SQL / Parse中的字段,这意味着应用程序中的核心数据模型版本必须更改为与服务器上的SharePoint列表相匹配。 如果可以dynamic地在核心数据中生成实体(SharePoint列表),那么当实体中的列在服务器上发生更改时,应用程序不会中断。 如果这是可能的,是否有人有一个例子?