“Send To” function in WSS 3.0 does not copy look-up fields

The "Send To" function of WSS 3.0 does not copy look-up fields when you copy a non-Office document (like doc, xls etc) for 1 list to another. This is because the scope of the Look-Up field is the same web that the source document is at; whereas the “Send To” feature allows you to copy…

1

How to get audit logs for various admin activities in SharePoint 2007

A customer came up with a requirement that they wanted to know and get the audit log of the following activities happening their environment: Users/Groups added/modified in the People and Groups list of the site. Any modification in the Site Collection Administrator section. User/Groups permission change in the Advanced Permissions section. In MOSS 2007, to…

1

How to find all the websites using enterprise features in SharePoint

A customer came up and said, we are having a large number of SharePoint Enterprise licenses and we want to know how many websites in our Farm are actually using Enterprise features of SharePoint. In SharePoint, enterprise features are available by enabling the SharePoint Feature called as “PremiumWeb” with featureID as “0806D127-06E6-447a-980E-2E90B03101B8”. A good list…


How to fetch data from XML file and auto-populate the fields in NEWFORM.aspx

Recently a customer came up with a requirement that he is having some structured data in XML file and now when they are creating a list which will have data populated from the XML file. The XML file contained the machine details for a particular user and XML was structured as: <data>     <user>          …


WHY MY WORKFLOW DOES NOT WAKE UP FROM DELAYACTIVITY?

Lately working with one of the customer’s I came across an interesting lookout. Basically customer has created a simple workflow for SharePoint in Visual Studio 2008 and had used a delay activity which seems to be causing the problem. The problem was that workflow runs perfectly fine but after hitting the delay activity, never wakes…

7

Download AutoCAD’s .dwt files from SharePoint Document Library

Recently I came across an issue with one of the customers. They are using a lots of AutoCAD files which are with DWT extension and are uploaded to a SharePoint’s document library. But when they are trying to download the .dwt files, it is failing always with error 403 (The Website declined to show this…

2

How to create custom Submit posting action handler to send email for MCMS 2002

Recently a customer came up with an issue and wanted to create a custom submit action button handler in CMS 2002 and send email to the editor/moderator. The requirement was that the user should be able to select which editor or moderator the email needs to be sent. The customer was following the article available…

1

SPWebConfigModification does not work on Farms with multiple WFEs

Sometime back a customer came up with an issue. He has written a code in FeatureActivated event handler to add an entry into Web.Config file by using SPWebConfigModification API. The same entry was being removed in FeatureDeactivating event handler. The code is working perfectly fine in the test machine but failed to add or remove…

1

WSRPConsumerWebPart does not have unique ID for userContextKey

A customer came up with an issue. WSRPConsumerWebPart’s userContextKey is always sending user’s display name when communicating with the producer. They were having a requirement that the userContextKey have to be a unique value to identify the user. Upon a little digging found that when you are using the WSRPConsumerWebPart, the userContextKey have 2 options…

4

How to programmatically complete Approval workflow task

A team mate of mine was stuck with a curious issue. She was using SharePoint’s in-built Approval workflow but was using a custom ASP.net application to talk to a custom webservice hosted inside SharePoint server. That particular web service was having a method to complete the Approval workflow’s task using SPWorkflowTask.AlterTask method. Here is the…

4