01 June 2011

Start Workflow from an incoming email


By default SharePoint 2007/2010 will not start workflow when an email coming to a document library or list library. But it can be enable by using STSADM commands.

stsadm -o getproperty -pn declarativeworkflowautostartonemailenabled

If this show below result

"Property Exist=”No”"

It says workflows don’t start automatically on lists that are E-mail enabled.
So you needs to change it to true.

stsadm -o setproperty -pn declarativeworkflowautostartonemailenabled -pv true

result

"Property Exist="Yes" Value="true""



Hide “Compliance Details” from the ECB menu


Refer following MS article

Core.js file location

SharePoint 2007 –  “%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033

SharePoint 2010– “%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS\1033

Add below code in your customcore.js file in beginning of the function “CIMOpt”

If (h == ‘Compliance Details’) return ‘’;


Full CIMOpt function area

function CIMOpt(c,h,i,g,f,d)
{
if(h == 'Compliance Details') return '';                  ***Add this***
ULSrLq:;
var a=CMOpt(h,i,g,f,d);
if(!a)return null;
for(var b=0;b
{
var e=c.childNodes[b].getAttribute("sequence");
if(e)if(e>d){c.childNodes[b].parentNode.insertBefore(a,c.childNodes[b]);
return a
}
}

Hide a Menu Item in the ECB from SharePoint List Items


Refer following MS article


Core.js file location

SharePoint 2007  %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033

SharePoint 2010 – “%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS\1033