sharepoint

MS Word adding via VBA Custom Document Properties from SharePoint

半世苍凉 提交于 2020-08-26 13:39:05
问题 I recently found myself unable to add Control Content objects in Word that are linked to the document properties linked to the SharePoint library which are exposed when creating new columns inside a SharePoint library. I posted my initial question: MS Word adding Custom Document Properties (from SharePoint) as a ContentControl via VBA. Unfortunately, I cannot post my solution there as some people decided that my question was incomplete. Luckily a user (@slightlysnarky) kindly posted a

MS Word adding via VBA Custom Document Properties from SharePoint

不打扰是莪最后的温柔 提交于 2020-08-26 13:38:22
问题 I recently found myself unable to add Control Content objects in Word that are linked to the document properties linked to the SharePoint library which are exposed when creating new columns inside a SharePoint library. I posted my initial question: MS Word adding Custom Document Properties (from SharePoint) as a ContentControl via VBA. Unfortunately, I cannot post my solution there as some people decided that my question was incomplete. Luckily a user (@slightlysnarky) kindly posted a

Uploading a File to SharePoint Online using Microsoft Graph API

我怕爱的太早我们不能终老 提交于 2020-08-09 09:13:48
问题 I'm really new to Microsoft Graph API, I created a script using powershell to get reports from Microsoft 365 and it is being saved on my drive ( c:\temp\reports.xlsx ). After it is being saved i wish to upload it to SharePoint online. On reading the docs, Microsoft says to do the following request, PUT /sites/{site-id}/drive/items/{parent-id}:/{filename}:/content I then tried to apply it to my use case and this was my request: function RestMethod { Param ( [parameter(Mandatory = $true)]

Uploading a File to SharePoint Online using Microsoft Graph API

时光毁灭记忆、已成空白 提交于 2020-08-09 09:13:21
问题 I'm really new to Microsoft Graph API, I created a script using powershell to get reports from Microsoft 365 and it is being saved on my drive ( c:\temp\reports.xlsx ). After it is being saved i wish to upload it to SharePoint online. On reading the docs, Microsoft says to do the following request, PUT /sites/{site-id}/drive/items/{parent-id}:/{filename}:/content I then tried to apply it to my use case and this was my request: function RestMethod { Param ( [parameter(Mandatory = $true)]

Powerpoint presentation file reports to be corrupted after it was copied to a sharepoint online server

大城市里の小女人 提交于 2020-08-05 08:37:33
问题 Our company develops and distributes a Powerpoint Add-In. From the AddIn I add CustomXml parts (referenced to the presentation and the slide as well) to a Powerpoint presentation via DocumentFormat.OpenXml SDK V 2.10. Everything is OK with the file. Then I copy the file to a SharePoint online. It doesn't matter, if I copy via our WebDAV path, a SharePoint website on a browser or the latest possibility via OneDrive. Subsequently the behavior of that file varies: Powerpoint opens the file

Trying to add click event on the prepend element:

前提是你 提交于 2020-07-10 08:24:42
问题 Trying to redirect to different page on click of image $('.grid').prepend('<div id="new" style="width:50px;background-color:#1879A9;padding-left:3px;margin-top:10px"><a href="#somelink"><img id="test" src="#somesource"></a></div>'); Tried the below code: $('.grid').on('click', '#test', function() { alert("test"); //It didnt work. }); 回答1: Maybe something like this: $('.grid').on('click', window.location.href = 'page_url'); 回答2: First you've to use class insted of id , (semantically error when

Link to an specific Sheet/cell of a Sharepoint Excel

 ̄綄美尐妖づ 提交于 2020-07-10 01:33:42
问题 I have an Excel Workbook uploaded to my Sharepoint site. I want to create an http link to that Excel but I want to point to an specific Sheet and cell, so the Excel opens at that position. At the following link, I found how to reference a sheet: http://support.microsoft.com/kb/197922 So, I built my http link like this: <a href="http://SharepointSite/MyWorkBook.xls#Sheet2!D4"> However, the Excel opens on Sheet 1, cell A1. Not Sheet2, cell D4 Why is this not working? Is there any way to open an

Link to an specific Sheet/cell of a Sharepoint Excel

北慕城南 提交于 2020-07-10 01:32:28
问题 I have an Excel Workbook uploaded to my Sharepoint site. I want to create an http link to that Excel but I want to point to an specific Sheet and cell, so the Excel opens at that position. At the following link, I found how to reference a sheet: http://support.microsoft.com/kb/197922 So, I built my http link like this: <a href="http://SharepointSite/MyWorkBook.xls#Sheet2!D4"> However, the Excel opens on Sheet 1, cell A1. Not Sheet2, cell D4 Why is this not working? Is there any way to open an

Check if workbook in SharePoint 365 is locked for editing

丶灬走出姿态 提交于 2020-07-09 20:01:36
问题 I have a document library in SharePoint 365 and I use a local Excel macro file to open workbooks in SharePoint online via VBA. This works fine with code like location = "https://mycompany.sharepoint.com/sites/ABC/LibraryA/Book1.xlsx" Set wbk = Workbooks.Open(location) However, when users are editing the workbook in Excel Online, the workbook is locked / in use, and then the code runs into a prompt to save a local copy of the file. I want to avoid that and branch to code that handles things

SharePoint site as R directory

岁酱吖の 提交于 2020-06-29 05:07:24
问题 I have figured out a way to load files from a SharePoint site into R but is there a way to make the site itself a default R directory? I tried the shortcut and changing properties to the link but when I open R that doesn't work 回答1: Probably there's no way, because Sharepoint folders are managed by Windows Explorer's shell extension. They doesn't exist in local file system, so R cannot see them. 回答2: I figured out a way around it. You can't use the link for the intranet site, but if you use