sharepoint

OneDrive API Python SDK - points to login.live.com not mydomain.sharepoint.com

谁都会走 提交于 2020-01-13 19:49:28
问题 I am trying to use the OneDrive API Python SDK to upload files to an Office 365 E3 account SharePoint folder. As described for OneDrive for business / SharePoint files I am using Azure AD that is included in my Office 365 E3 account for auth and have created a native client application app in Azure AD management. I would expect that I need to point auth to Office 365: mydomain.sharepoint.com However, it appears the OneDrive API Python SDK (auth_provider.py) points auth to: AUTH_SERVER_URL =

Getting “EndPoint Not Found” error with WCF service deployed to SharePoint 2010 site

独自空忆成欢 提交于 2020-01-13 18:24:26
问题 I am trying to utilize the autocompleteextender from the ajaxcontroltoolkit in one of my sharepoint solutions (which requires an older version of the library since all of the recent ones require the .NET Framework 4.0) and unfortunately I can't use a page method in a UserControl, only in an actual page. Therefore I am left with only the one option which is to use a method from an actual web service. The problem is that I can't seem to figure out how to correctly deploy the service and

Using VBA to read the metadata or file properties of files in a SharePoint doc library

三世轮回 提交于 2020-01-13 14:13:29
问题 I have a few hundred Word templates (DOTX) on a SharePoint site. Many teams of users work with these templates. When a user needs to customize this documentation, they click a special link on SharePoint to generate a new document (DOCX) from the template they choose. This new document file always needs to be "linked" back to its template file on SharePoint. If the document loses that link, it won’t work correctly and is considered “broken”. When documents break, I need to re-establish the

How do you instruct a SharePoint Farm to run a Timer Job on a specific server?

左心房为你撑大大i 提交于 2020-01-13 09:42:51
问题 We have an SP timer job that was running fine for quite a while. Recently the admins enlisted another server into the farm, and consequently SharePoint decided to start running this timer job on this other server. The problem is the server does not have all the dependencies installed (i.e., Oracle) on it and so the job is failing. I'm just looking for the path of least resistance here. My question is there a way to force a timer job to run on the server you want it to? [Edit] If I can do it

How to use selected User-profile service in SharePoint

Deadly 提交于 2020-01-13 07:25:49
问题 Basically I am making a timer job to send a birthdayWish email fetched from SharePoint userprofile service . But problem is I have multiple userprofile services on server. like 1). userprofile service1 2). userprofile service2 3). userprofile service3 4). userprofile service4 So how to use 2nd user-profile service. Here's some code, that I did: SPServiceContext oServiceContext = SPServiceContext.GetContext(SPServiceApplicationProxyGroup.Default, SPSiteSubscriptionIdentifier.Default);

Sharepoint Content Approval message

心已入冬 提交于 2020-01-13 06:57:07
问题 I Have Content Approval turned on for a list. When Users create Items they get the message 'Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights.' I want to change the text of this message in a particular site collection. I found the message defined in \12\config\resources\wss.resx with a key of checkin_publishMajordesc. Does anyone know if there's a way to override the seetiings in the Resources filesat the

Batch copy files to SharePoint site

限于喜欢 提交于 2020-01-13 06:15:44
问题 I searched SO, SU, and SP.SE for a solution, but could not find what I needed. I'm looking for a solution which may be a script or some other non-coding method/tool. I am trying to write a script (to be used by others) or some other form of automation to upload various reports automatically to a SharePoint site. I have managed to get the following (VBScript) code to work, but only for text-based files -- .CSV in this case, though this also works for .TXT, etc. Option Explicit Dim sCurPath

Programmatically determine authentication mode

旧街凉风 提交于 2020-01-13 04:42:06
问题 Is there a way to programmatically determine if a SharePoint 2007 web application is using Forms authentication? I guess one way might be to read it from the web.config but I was wondering if there is some property exposed in the API. 回答1: Take a look at how /_admin/Authentication.aspx does it in Central Admin: protected override void OnLoad(EventArgs e) { base.OnLoad(e); string g = base.Request.QueryString["WebAppId"]; this.webApp = (SPWebApplication) SPConfigurationDatabase.Local.GetObject

How do I apply colors to a SharePoint List, based on Status?

浪尽此生 提交于 2020-01-12 23:43:26
问题 I would like to apply colours to a SharePoint List's rows based on status or similar. Please could someone tell me in detail how to do this. 回答1: There are a lot of posts on the excellent Path To SharePoint blog regarding this subject. I am not going to list the individual posts, but the technique is called the 'Html Calculated Column'. 回答2: Although this is a late answer, this question still gets asked a lot. I've put together a summary of the possible methods of doing this, with links to

Namespace 'SharePoint' does not exist in the namespace 'Microsoft'

自闭症网瘾萝莉.ら 提交于 2020-01-12 07:58:18
问题 So I am starting to learn C#, like literally just started learning, and coming from a Java background, it doesn't look too bad. However, I have a question. I am following THIS tutorial on using the client-object model. And just starting from the top, I added the references, but using Microsoft.SharePoint.Client; keeps giving me the error that "the namespace 'SharePoint' does not exist in the namespace 'Microsoft', but I clearly see it on the right side panel. So looking at the instructions,