Workflow name in workflow history list

This blog post is a contribution from Balaji Sadasivan, an engineer with the SharePoint Developer Support team. Issue In order to audit workflows, we require to see the name of the workflow in the history list. Cause Currently the workflow history has no provision to show the workflow name. Workaround Create a new workflow history…

3

Rerouting users to a custom page after multiple page upload

This blog post is a contribution from Balaji Sadasivan, an engineer with the SharePoint Developer Support team. Puzzle In MOSS 2007 and SharePoint 2010 you can reroute the user to a custom page after they complete uploading documents to a document library to by changing the source parameter in the query string URL like what’s…

0

HOW TO: Retrieve Active Directory custom attributes in another domain using LDAP query

This blog post is a contribution from Aaron Miao, an engineer with the SharePoint Developer Support team. When developing a custom claims provider, you may need to retrieve user information from Active Directory (AD) with LDAP query programmatically. You can add custom attributes by extending the AD schema. Those custom attributes should be usually in…

1

HOW TO: Prevent users from pressing back button after signing out from a SharePoint site

This blog post is a contribution from Charls Tom Jacob, an engineer with the SharePoint Developer Support team. Scenario: In SharePoint, the sign out is complete only when you actually close the browser window.  As shown below, SharePoint asks you to close the browser after sign out: “You must close your browser to complete the…

2

HOW TO: Customizing SharePoint AppWeb web template

This blog post is a contribution from Mustaq Patel, an engineer with the SharePoint Developer support team. SharePoint Apps provides a great deal of flexibility and how much we can do with it. Using WebTemplate we can direct AppWeb (the SPWeb under which the App is hosted) to use any other Site Template instead of…

4

RunWithElevatedPrivileges does not work with UserProfile API

This blog post is a contribution from Aaron Miao, an engineer with the SharePoint Developer Support team. RunWithElevatedPrivileges executes the specified method with Full Control rights even if the user does not otherwise have Full Control. This is not true for User Profile API. To reproduce, with code below in a web part: SPSecurity.RunWithElevatedPrivileges(delegate() {…

0

HOW TO: Retrieve Web Analytics report data using API

This blog post is a contribution from Aaron Miao, an engineer with the SharePoint Developer Support team. In a scenario that you want to render Web Analytics report data to your favorite format, you need to retrieve the report data. There’s no document on how to retrieve SharePoint built-in report data. Some online articles are…

22

HOW TO: Create a custom ASPX association and initiation forms for Visual Studio Workflow

This post is a contribution from Himani Sharma, an engineer with the SharePoint Developer Support team. Requirement You want to use custom Association and Initiation forms with your Visual Studio workflows. InfoPath forms do not fulfill your requirement due to the limitation they pose in terms of controls available in browser enabled forms. Hence you’d…

3

HOW TO: Programmatically set/pass WorkflowContext from a Visual Studio workflow to a custom workflow action in SharePoint 2010

This post is a contribution from Himani Sharma, an engineer with the SharePoint Developer Support team. Scenario: You have a workflow custom action that you’d like to be used in SharePoint 2010 workflow.  This activity uses Microsoft.SharePoint.WorkflowActions.WorkflowContext to obtain WorkflowContext and hence use the workflow instance specific properties like ItemId, ListId, TaskListGuid, WorkflowInstanceId etc., Analysis:…

1

HOW TO: Prevent site deletion with a custom event receiver

This post is a contribution from Charls Tom Jacob, an engineer with the SharePoint Developer Support team. In this blog I will describe how to develop a custom site event receiver to prevent users from deleting a SharePoint site. By default, any user with the sufficient permission can delete a site. This custom solution can…

6