Custom SharePoint Designer action not displaying in a workflow when selected from the actions list

As part of my studying for SharePoint development exams 70-573 and 70-576 I have been looking at areas I haven’t had any previous experience and trying them out. As part of this I decided to look at creating a customer SharePoint Designer action.

The scenario I decided to look into was creating an action which accepted some parameters and then created a new site at a specific location. I won’t go into the code for this as its fairly straightforward. What I wanted to highlight was the problems I encountered when trying to add the action to a test SharePoint Designer workflow.

When starting out I have a look on the web and found a few articles to get me going, see links below. I followed the first article but found when I deployed this the new action appeared in SharePoint Designer but when I clicked on this nothing happened the action didn’t appear in the workflow.

Looking at the comments on the site it appeared a few other people had the same problem but there was no answer out supplied. I checked and re-checked my .actions file, the manual web.config entry and setting in in the advanced section of the package in Visual Studio. All the components like the assembly name, version number and public token key all looked the same. Eventually out of frustration I copied the whole string  in Assembly Name attribute set in the package, see figure 1, and copied and paste it into the two other locations and it worked. At first I couldn’t believe this would make a difference as long as the assembly name, version number and token were correct but it seems like the string has to match exactly, see below figures 1 2 and 3 in which the only difference is figure 2 doesn’t have a space between the assembly name and the version and this doesn’t work.

Hopefully this will save someone else from the frustrations I enjoyed Smile

Figure 1

SharePointDesignerAction

Figure 2

SharePointDesignerAction2

Figure 3

SharePointDesignerAction3

Links

http://msmvps.com/blogs/sundar_narasiman/archive/2010/12/26/develop-custom-workflow-activity-for-sharepoint-2010-workflow.aspx

http://toddbaginski.com/blog/how-to-create-a-custom-windows-workflow-activity-and/

Advertisements

One Response to Custom SharePoint Designer action not displaying in a workflow when selected from the actions list

  1. moss says:

    you are best man…I have been looking for it last two days..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: