sharepoint-2013

Start a crawl manually via SOAP or REST WebService

自作多情 提交于 2019-12-11 05:28:40
问题 On a SharePoint 2013 on premise installation, we have configured an incremental crawl, that runs every 15 minutes. Now we need a possibility to start this crawl manually, too. Is there a WebService we can call to start the crawl manually? Maybe even a possibility to start the crawl on a smaller scope, like only a list or website? 回答1: You may just love Simple HTTP api for Executing PowerShell Scripts In cases where you want to simply invoke a PowerShell script remotely, a REST api is a good

How to send the Assignment Email with a link to the task in it SharePoint 2013 Visual Studio Workflow

一曲冷凌霜 提交于 2019-12-11 04:48:43
问题 I have developed a Visual Studio 2012 workflow for SharePoint 2013. I am trying to find a way to simply send a link to the actual Task in the Assignment email. I have created a variable and set the "TaskItemId" in the output sections of the properties to that variable. I then reference my variable in the body of the AssignmentEmailBody property. When the email gets sent the TaskID is null. In sharepoint designer there is a "Start Task Initation Process". I am guessing it creates the task

Sharepoint 2013 calculated field as hyperlink renders as text

不羁的心 提交于 2019-12-11 01:22:55
问题 I have a column in Sharepoint 2013 and set the type to 'Calculated'. I have set the data return type to integer (pic attached) so that the field is hyperlink. All worked fine for over a year in all environments (dev and production) and browsers (chrome, firefox, IE) until recently when users reportted the hyperlink was not clickable anymore and displayed as text (pic attached). Inspecting the element, reveals the value of is treated as text. I have spent some time simplifying the formula,

Office 365 Sharepoint Upload Files to Documents Library

主宰稳场 提交于 2019-12-11 00:17:15
问题 I am trying to use the following code to add files to my document library on Sharepoint Office365 using web services. public void SaveFileToSharePoint(string fileName) { try { var copyService = new Copy { Url = "https://mydomain.com/_vti_bin/copy.asmx", Credentials = new NetworkCredential("username", "password", "domain") }; var destURL = "https://mydomain.com/Shared%20Documents/" + Path.GetFileName(fileName); string[] destinationUrl = { destURL }; CopyResult[] cResultArray; var fFiledInfo =

Receiving error of “The type or namespace name 'LayoutsPageBase' could not be found”

萝らか妹 提交于 2019-12-10 18:34:32
问题 To give you entire perspective, I am trying to create a custom ribbon in SharePoint. For that I am following this tutorial. I created the required feature and was able to deploy and test it with simple JavaScript alert. Now I am trying to call an ASPX page on click of ribbon button. For that I created an Application Page in my project. But in the code behind file of ASP.NET page I get the following error: The type or namespace name 'LayoutsPageBase' could not be found (are you missing a using

Where is a SiteLogoUrl in CSOM?

拟墨画扇 提交于 2019-12-10 15:29:23
问题 I found SPWeb.SiteLogoUrl and expected this property in CSOM and REST. But I didn't find it. How can I get a SiteLogoUrl using CSOM or REST? SP.js Microsoft.SharePoint.Client.dll 回答1: It was moved to the POST request that SharePoint creates while redirecting via appredirect.aspx. So, the only one way to get Site Logo Url is to handle appredirect POST request. To initiate redirect you should use this code snippet: Response.Redirect(TokenHelper.GetAppContextTokenRequestUrl(sharePointHostUrl,

Sharepoint 2013/2016 Calculated Column stops calculating

放肆的年华 提交于 2019-12-10 11:34:00
问题 I have a calculated column in SharePoint On-Premises that shows the number of days till a due date which works perfectly for a day or so then stops calculating, but if I go to the list settings and click the column and click ok then it calculates again? Has anyone experienced an issue similar to this. I had this issue in both 2013 but within a few weeks moved to 2016 and still the same issue. I've tried " " blank and also "" empty so not sure if that is causing the issue?? Is it a problem

SharePoint Error: The server does not allow messages larger than 2097152 bytes

痴心易碎 提交于 2019-12-09 14:42:38
问题 I have web service that point to sharepoint 2013 Office 365. I use the client object model. I am trying to update the xml file which stores 4 attachments in it. When I do this when I have large binary data in the xml file I get the following error : Message The request message is too big. The server does not allow messages larger than 2097152 bytes. I realize I am probably going to have to seperate the attachments from the xml file but currently my infopath form stores them there. Is there a

Get a list of files from Sharepoint and download the latest file

纵饮孤独 提交于 2019-12-09 13:54:13
问题 I am trying to get a list of files from a SharePoint location and then get the latest (by creation time) file using C#. The resources available talk about SPWeb/SPSite but these are not available directly on Visual Studio 2013; The SharePoint site: https://sharepoint.amr.<Website>.com/sites/OrganizationName/Group/Shared Documents/Reports/Area/ So far I have been unable to do so. Could anyone please provide some useful resource or examples? 回答1: If you're not running your code on the

How to manage client context object in seperate class library?

守給你的承諾、 提交于 2019-12-08 16:44:00
问题 I am trying to create a library(class library) for sharepoint which will have all sharepoint dll to interact with sharepoint server to upload files,documents and create document library and document set . Now this library could be consumed by clients like web application(asp.net webform or mvc) or console application or web api/wcf services or windows form anything. So here I am bit confused with creating repository patterna and unit of work layer in order to manage client context object. I