Pages

Tuesday, February 5, 2013

SharePoint Designer 2010 - Sending email with attachments



I don't know why Microsoft is not adding sending email with attachments activity into SharePoint Designer 2010 OOTB workflow. I think it’s very common functionality if we are working with 'send email' functionality in designer workflow.

Same like SharePoint 2007, Codeplex is providing this functionality for SharePoint Designer 2010.

Codeplex solution is very useful solution: http://spdactivities2010.codeplex.com/

Many Thanks to solution developer team :)

Remove SharePoint list views from search results



I got many views into SharePoint lists because of which user are getting SharePoint list view page names into Search result page. Initially I have added specific ASPX SharePoint list view URL into search rule to exclude list views from the search result page, but solution didn't worked.

Finally I am able to remove view from search results by adding new Search scope, here are the details.
1) Create new search rule
2) Select 'Property Query' from Scope Rule Type section
3) Select 'contentclass' from property restrictions drop down.
4) Enter 'STS_List_GenericList' into value
5) Select Exclude from 'Behavior' section.

Reference Link:

Wednesday, January 16, 2013

Enable Quick Launch in Webpart Pages in SharePoint 2010

DataMember not coming into CollectionDataContract class – WCF



While working with WCF CollectionDataContract class, I have found very weird problem. we don’t have a way to add DataMember property into CollectionDataContract class.


Though I have found some links which talks about alternate way to populate/add data members into CollectionDataContract class.


How to get MIME type of file in C#



There is no direct way to get MIME type of file in C#, I have tried couple of options but didn't get any luck. though there are some WIN 32 registry and InteropServices classes from where we can get MIME type but I feel it’s too much code for getting MIME type. instead of using these classes I have found static solutions for getting MIME type, it's switch-case code for all the available MIME type based on the file extension (I know solution is not GOOD with all static file extension and MIME type)

Reference Links:



Link for list of common MIME types and their corresponding file extensions: http://www.webmaster-toolkit.com/mime-types.shtml

If anyone find any better solution then Please share here ;)