Category: Development
-
How sloppiness and SPWorkflowTask.AlterTask() could inadvertantly lock your workflow task
The SPWorkflowTask.AlterTask() method is handy dandy. It allows us to alter task details from outside of the workflow itself. I was using it in a couple of custom task forms I had created to update the task based on some user input. It’s pretty simple. You get a reference to the active workflow task item, […]
-
Creating custom content type forms using aspx pages in SharePoint 2007
I’m working on a project where I need to create some custom task forms for a workflow. I’ve been looking into a few different ways of doing it and I ended up deciding on using custom aspx pages to do the job. I figured I should share how to do it although it’s not all […]
-
How to force InfoPath forms to open in the browser when linked in an email
We recently put a rather complex SharePoint workflow into production. Our workflow is creates a lot of tasks, and each time a task is created a custom email is sent to that user with a link to the task. We create the body of this email ourselves, including the link to the task. The user […]
-
How to set the content type of a new file in a document library, when uploading said file through code (aka longest and most convoluted blog title to date)
I’m on a project that’s very close to being implemented in production. For the final go-live we will be uploading a bunch of files (about 700) into a document library. There are two content types in our document library, SPI Documents and SPI Drawings. Uploading the files directly into the document library will pick the […]
-
Content Types with associated Fields for SharePoint 2010
Here is a (hopefully) complete list of Content Types and associated Fields for SharePoint 2010. This is the equivalent of my previous post, but for SharePoint 2010 instead. You can find the PowerShell script I used to extract the information in another previous post of mine.