Before using an SPList we need to check whether that specific list name exists in the web or site. To do this use this method in C#: public static bool ListExists(SPWeb web, string listName) { return web.Lists.Cast<SPList>().Any(list => string.Equals(list.Title, listName)); }
Suppose the Share Point ListField DateTime Field needs to update programmatilcally as default value as Today . Below is the code for the updating Today as the Default Value. using (SPSite site = new SPSite(“http://Sitename/”)) { using (SPWeb web = spsiteObj.OpenWeb()) { SPList list = web.Lists[“list”]; Guid id=list.ID; SPField dateTime = list.Fields[“dateTimeField”];
We recently went from Wss 3.0 to SPS 2013 Enterprise. One of the welcome features by the users was the ability to “multi-author” documents. In our Proposal Development area, they would chop up a document and pass out sections to writers. They would then return them to a single person who would reconstruct the document
We have an anonymous SharePoint 2010 Publishing site with a custom master page. We are getting an error each time the clients content editors edit the page “There was an error processing the request”. After some investigation with Fidler we found this down to an ajax/JSON call made on the page from the managed metadata
After installing SharePoint, you start noticing some health warnings in Central Administration which tell you that you shouldn’t use built-in accounts for application pools or service identities. For SharePoint 2013, 2 of the services which you will find running typically under a built-in account are: SharePoint Tracing Service (SPTraceV4) Distributed Cache Service (AppFabricCachingService) It’s actually pretty easy to
Your SharePoint lists are all set up and they are full of interesting data – but until that data is presented in an aggregated fashion, it will be pretty difficult to make it useful. Your users need to be able to compare, contrast, create ad hoc reports and assess the information. Your high level folks
Ah, my first blogpost on this community. 🙂 I use PowerShell a lot… with a development background, I found it not that hard to get used to it and once you get the hang of it, it gives you a lot of power and possibilities. The script below gives you an easy way of extracting
Here’s some Powershell Scripts that I have used to help me solve common problems in SharePoint. Please share yours with me if you have them! ########################################################################################## ############### Jayaraja #################### ############### http://www.sharepointlovers.com #################### ############## Bugs or Thoughts are welcome 🙂 sweetraskels@gmail.com ################## ########################################################################################## #Add Sharepoint Powershell Snap if its not loaded $powershellSnapin = “Microsoft.Sharepoint.Powershell” if ((Get-PSSnapin
I’m sure we all have our own stories about how we “fell” into the SharePoint-verse. Perhaps your employer decided to make the switch and your job title suddenly expanded to include “SharePoint Administrator/Architect/Developer”; you were considered “computer savvy” and you were recruited by your company to help with the SharePoint transition; or your role was
Here is a Powershell Script to that deploys a WSP and activates a SharePoint feature $solutionName=”solutionname.wsp” $featureName=”featurename” $SolutionPath=”C:\wsp\”+$solutionName if($args[0] -eq ‘DEV’) { $webAppName=”http://url” } elseif ($args[0] -eq ‘QA’) { $webAppName=”http://url” } elseif ($args[0] -eq ‘PROD’) { $webAppName=”http://url” } else { Write-Host “$(Get-Date -Format o) Environment not specified – please pass appropriate environment to deploy -”
Page [tcb_pagination_current_page] of [tcb_pagination_total_pages]