Tag Info

Hot answers tagged

4

Please try deleting "Error Web Part" from web part maintenance page. This is your "LightningConductorWebPart" which is throwing error.


4

The critical component when failing over a Workflow Farm to a New SharePoint Farm (In the same domain or otherwise) is that the new SharePoint Farm must have the same Realm as the original one. Realm is by default identical to the SharePoint Farm ID, but can be changed using Set-SPAuthenticationRealm -Realm FarmIDoftheOriginalFarm. Few Caveats: You will ...


3

It is possible now. Thanks to Office DEV Patterns and Practices Enabling auditing in site collection level Following code example shows how to enable all auditing setting in site collection level and how to adjust audit log trimming. Microsoft.SharePoint.Client.Site site = clientContext.Site; Audit audit = site.Audit; clientContext.Load(site); ...


3

If you don't want to use the GUID, you'll have to make an extra call and get the vti_listname property from the list folder. The folder you can get by url using the getFolderByServerRelativeUrl on the SP.Web object. Example: var clientContext = SP.ClientContext.get_current(); var web = clientContext.get_web(); var folder = ...


3

You can use paid VirtoSoftware solution - Virto Image Slider Web Part with 30 day trial period - http://www.virtosoftware.com/products/content-mgmt/virto-image-slideshow and they have almost the same app in Office 365 Store and it is free now there - https://store.office.com/WA104379182.aspx?assetid=WA104379182


3

The following example demonstrates how to return web sites sorted by last modified date: function getWebs(success,error) { var ctx = SP.ClientContext.get_current(); var web = ctx.get_web(); var webs = web.getSubwebsForCurrentUser(null); ctx.load(webs); ctx.executeQueryAsync( function(){ var result = []; ...


3

Since SP.Taxonomy.Term exposes CustomProperties property you could replace the line: taxonomyTerm.get_objectData().get_properties().CustomProperties; with this one: taxonomyTerm.get_customProperties() In order to optimize the request, you could specify explicitly what properties to retrieve for SP.Taxonomy.Term object via SP.ClientContext.load method, ...


3

You might be using a wrong 'Web' object. It shouldn't be System.Web or Microsoft.Web. It should be from Microsoft.SharePoint.SPWeb namespace. So first of all you need to get an 'SPWeb' object from 'properties'. Depending on where you are activating the feature, it should be something like this: If you are activating a Web scoped feature: SPWeb web = ...


2

Just ran into the same issue - here is how you can configure it to show the display names. On the page with the search results (search for e.g. *): click on the settings wheel on top click on edit page in the navigation zone on the left: on the refinement webpart click on "edit web part" now on the right side the web part properties open - click on ...


2

You can use Virto Social Aggregator Web Part. It's web part for aggregating and effective displaying posts Twitter and Facebook.


2

Below is what I needed to change to get this to work: Add-PSSnapin Microsoft.SharePoint.PowerShell -EA SilentlyContinue $SPWeb = Get-SPWeb "http://sharepoint"; $SPList = $SPWeb.GetList("http://sharepoint/Lists/Favorites"); $userName = "i:0#.w|[domain]\[username]"; $user = Get-SPUser -web $SPWeb -Identity $userName; $userString = "{0};#{1}" -f $user.ID, ...


2

Please, refer to this link to modify this field: $SPSite = New-Object Microsoft.SharePoint.SPSite("http://sharepoint") $SPWeb = $SPSite.OpenWeb() $SPFieldUserValue = New-Object Microsoft.SharePoint.SPFieldUserValue($SPWeb,8, "#Test R.Test") $ListItem["Author"] = $SPFieldUserValue $ListItem.Update() $SPWeb.Update() As you can see, you ...


2

Below is the link to bulk upload profile picture using Powershell. https://gallery.technet.microsoft.com/office/Bulk-Upload-and-Update-2c27437e we have used this in one of our project. It may help you. If you are running the script in a fresh SharePoint installation, make sure that User Photos library exist in your My Sites host and also that there is a ...


2

First of all, in your example the SP.ClientContext.executeAsync method that submits request to server is missing. Secondly, it depends on the type of Managed Metadata field, see the below example how to retrieve managed metadata field value(s): And thirdly, since you are explicitly specifying what fields to retrieve using SP.ClientContext.load method, ...


2

I'd probably create a column (Flagged of type Yes/No) in the list to act as a field to filter on versus ORing all that together. Tick all the boxes to Yes for those items and then it becomes something like: http://mysite/_api/web/lists/getbytitle('SomeList')/items?$filter=((Flagged eq true)&$orderby=Test_x0020_Date desc&$expand=AttachmentFiles& ...


2

In the query builder, try using the Sorting tab and sort by rank then use the Dynamic Ordering property and set it to Demote to bottom. As long as you can get the query to hit that one page it should show up as the last result. I know it is not getting rid of the link, but at least the user would have to wade through everything before getting to it.


2

I would recommend the following example for loading web parts using JSOM: var ctx = new SP.ClientContext(); var pageFile = ctx.get_web().getFileByServerRelativeUrl(pageName); var webPartManager = pageFile.getLimitedWebPartManager(SP.WebParts.PersonalizationScope.shared); var webPartDefs = webPartManager.get_webParts(); ...


2

You will need to promote those columns by re-publishing the form. As you step through the wizard for publishing your infopath form a dialog appears where you can choose which columns you want to appear as promoted columns on the SharePoint list. You can see the steps here in this blog post: ...


2

I commonly use: if (file.CheckOutType != SPFile.SPCheckOutType.None) { file.CheckIn("Programmatically Checked In"); } Good Luck


2

I think I had success with this by using the Overwrite=True attribute (https://msdn.microsoft.com/en-us/library/office/aa544268.aspx). Also I believe once the content type is in use in a list instance it might be blocked from being removed. Try deleting the instance and then clearing it from both the first stage and second stage recycle bin then ...


2

You can change them from Central Admin. However some of them are built-in and cannot be changed. All of them can be copied. There is menu appears when you hover over one of them. You can choose copy and SharePoint will open a new page for you to create a new result source. Once you have done this you can make it the default for that site or site collection. ...


2

Via Central Administration: Manage web applications / Select the web application, then from the drop down list 'General Settings' select 'Resource Throttling' / change the value of 'List View Lookup Threshold' Or via PowerShell: $wa = Get-SPWebApplication http://YourSharePointSite $wa.MaxQueryLookupFields = 20 $wa.Update()


2

Try this: SPFieldUserValue userValue = new SPFieldUserValue(web, item["Created By"].ToString()); if (userValue != null) { SPUser user = userValue.User; string name =user.Name; }


2

The RunWithElevatedPrivileges code block has no effect in your case, as the item and web objects are created outside that scope. The folder objects you perform the MoveTo method on are received from the item, that is not "elevated". You should get site / web / list (etc.) objects you need to perform operations with elevated permissions to create within the ...


2

The page representing the other view ( customview.aspx in your case) is different from the page where JSLink is working for you. In this new page, you need to edit the web part to and include the JSLink reference just like it has been done for the other page.


2

As Pete M mentioned above you cannot filter directly on a multi-value lookup. The workaround to this is to use a CAML query via an HTTP POST. This does have the overhead of having to get the request digest, if the list doesn't have a large number of items, it may be best just to use client side filtering. var endPoint = ...


2

Continuous crawling helps to keep SharePoint content significantly more up to date. Continuous crawls are only available for Content Sources that use the SharePoint Sites content source type. Unlike full and incremental crawls, multiple continuous crawls can run at the same time. Also, a continuous crawl does not process or retry items that return errors in ...


2

I would recommend using a query against the change log. The "Event Receiver" really isn't it's just a timer job using the same approach detailed in the article. You could even run it all external to SharePoint from PowerShell if you wanted. No need to deploy custom code to SharePoint.


2

Sounds like you need promises which are in many ways the JavaScript equivalent of the Task class in .NET Using jQuery promises your getList code would look something like this. function getList(listName) { var def = new jQuery.Deferred(); var hostUrl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); var currentcontext = new ...


2

You could apply the following filter to exclude the fields that are not available in List forms: /_api/web/lists/getbytitle('<list title>')/fields?$filter=Hidden eq false and ReadOnlyField eq false



Only top voted, non community-wiki answers of a minimum length are eligible