November 30, 2011

STSADM Custom Commands

http://blog.falchionconsulting.com/index.php/downloads/

Example: http://blog.falchionconsulting.com/index.php/2008/02/export-content-types/

SET SOLUTION_NAME=”Lapointe.SharePoint.STSADM.Commands.wsp”
SET STSADM=”C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm”
%STSADM% -o addsolution -filename %SOLUTION_NAME%
%STSADM% -o deploysolution -local -allowgacdeployment -name %SOLUTION_NAME%


Deploying the exported Content Types:
http://www.sharepointnutsandbolts.com/2007/04/deploying-content-types-as-feature.html

User Profile Service - File Not Found

Farm Account Issue, Sometimes Sharepoint is installed with some account and is configured with some other account. Then Just go to Security --> Configure Service Accounts --> Update Farm Account

November 18, 2011

Linq



IEnumerable Way


var results = SPContext.Current.Web.Lists["Some List"].Items.Cast().Where(item => item[SPBuiltInFieldId.Title].ToString() == "Title To Search");


foreach(SPListItem item in results)
{
//logic
}


Ling Way


List results = (from SPListItem item in listobject where item["Title"].ToString() == "blahblah" select item).ToList();


foreach(SPListItem item in results)
{
//logic
}

Send email to all users of a sharepoint group

SonarQube with Jenkins Setup using Docker Images

https://funnelgarden.com/sonarqube-jenkins-docker/  https://medium.com/@hakdogan/an-end-to-end-tutorial-to-continuous-integration-and-con...