sharepoint

Sharepoint API Headless Obtaining Access Tokens

谁说胖子不能爱 提交于 2019-12-25 09:20:15
问题 I am coding an integration that has to call Sharepoint-online API's. My integration is not a webapp and has to work without a user present. As I understand it I need two setup steps: 1. User has to log in to Azure and set up an application and obtain a client ID. 2. I have to call a service with client ID and username and password I will then obtain an Access Token, Refresh Token and ID Token Once the two setup steps are complete I then can call the service using the access token, but

Excel VBA to query MS Access database on Sharepoint with ADODB - “Not a valid file name”

余生颓废 提交于 2019-12-25 08:24:01
问题 any chance someone could enlighten me on why I'm getting an "Not a valid file name" error when trying to connect to MS Access database stored on Sharepoint? I have no issues with connecting to file on C:\ Set cnn = New ADODB.Connection MyConn = "C:\somelocation\database.accdb" With cnn .Provider = "Microsoft.ACE.OLEDB.12.0" .Open MyConn End With but when I change MyConn to Sharepoint address it doesn't work :/ MyConn = "https://some.website.com/somelocation/database.accdb" I'm getting a "Not

Authenticate Web UI using OAuth2 Access Token from ADFS

霸气de小男生 提交于 2019-12-25 08:23:11
问题 In an Ionic mobile app, we need to access the web API and to show a Web UI (both SharePoint) in an Ionic WebView (essentially a browser inside the app). We're using OnPrem ADFS on Windows Server 2012 and OnPrem SharePoint 2013. Here's what we do: 1. In ADFS3, Setup OAuth2 and add a Relying Party Trust and a Client http://www.gi-architects.co.uk/2016/04/setup-oauth2-on-adfs-3-0/ 2. From the mobile app, call ADFS to obtain an OAuth Access Token First, GETing: https://myadfsdomain/adfs/oauth

Ckeditor 4.5.7 strips HTML tags despite config.allowedContent = true

风格不统一 提交于 2019-12-25 08:04:09
问题 I am using ckeditor 4.5.7 and I want the user to insert arbitrary HTML code into the page. For now the users cannot even insert tags like <h3>test</h3> - the <h3> tags are automatically converted to <p> after the data is saved (this is occurring in a SharePoint page). As per docs here - http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent - and multiple topics here on StackOverflow, I have set this option in config.js to disable content filtering but it seems it has no effect:

How will I get the last modified date of a file in a SharePoint using VBA?

好久不见. 提交于 2019-12-25 06:59:25
问题 I would like to seek help regarding on getting the last modified date of a file in a Sharepoint. What VBA code/command will I use in order to execute it. I would like to show this "Last Modified Date" of the file in a MsgBox when a command button is clicked. Your prompt response is very much appreciated. 回答1: This one had me scratching my head for a bit too... Make sure to add "@ssl" following the root URL e.g FileDateTime("\\site.com@ssl\file.xlsx") 回答2: You can use FileDateTime ( file_path

Verify TFS installation

拈花ヽ惹草 提交于 2019-12-25 06:49:52
问题 I have a server that was configured by someone that is not on the company anymore and I need to check the TFS installation and enable that "dasboard" with reports, charts etc. The only stuff working are: Source Control, issue tracking, web access. As far as I could check, Reporting Services seems to be disabled (or not installed) and I don't know how to check SharePoint installation. How can I verify and fix the TFS installation in order to make the reports work? If Reporting Services are not

User specific theme in sharepoint

不问归期 提交于 2019-12-25 06:46:30
问题 I have a requirment where in my sharepoint site I want to set the theme according to user. for e.g lets say if user a set his theme as theme1 and the user b logs in and set theme to theme2. So next time when user a log in he must have to see the theme set by him. I.e theme a. Can any one tell me what will be the best approch to do it. Thanks in advance. Sachin 回答1: I had a similar requirement once. In my case they wanted users to be able to change the "color layout" of a MOSS portal (so the

Generate a file for download on button click - without breaking other buttons

跟風遠走 提交于 2019-12-25 05:54:10
问题 I'm trying to provide an option to download a report (in csv format), allowing the user to select a specific date range. (I also have an option to display the same information in a GridView on the page). I can do this just fine by using Response.Clear(), setting the ContentType and content-disposition, using Response.Write(), and then Response.End(), like this blog, and many others. However, after doing this, the buttons no longer seem to be posting back to the server. I can update my report

How to Replace any of these “/ \\ [ ] : | < > + = ; , ? *” Characters in a string with empty string in asp.net

元气小坏坏 提交于 2019-12-25 05:45:10
问题 I would like to replace any of the below occurrence of characters in a string with empty string in asp.net c# "/ \ [ ] : | < > + = ; , ? *" i am trying to replace it with mystring.contains('[') { mystring.Replace('[',' '); } Currently i am doing it as above . Is there a cleaner way of doing this. Thanks and Regards 回答1: There are many ways: 1) via regex: var pattern = @"[\/\\[\]\:\|\<>\+\=\;\,\?\*]"; var sample = "test * beacuse [a]"; var result = Regex.Replace(sample, pattern, string.Empty,

Sharepoint list item page comments

送分小仙女□ 提交于 2019-12-25 05:29:14
问题 I have a sharepoint 2013 website with a list of items, i want that on an item page (displayForm.aspx) the webiste users will be able to add comments (wordpress like) to the item, how can i do that? 回答1: I think discussion board list may meet your requirements without doing any custom development. Please see the article at url http://www.learningsharepoint.com/2012/12/19/create-discussion-board-in-sharepoint-2013-complete-tutorial/ If you are interested in creating custom UI you may also