Monday, December 27, 2010

Get sharepoint workflow name programmatically

Recently we came across a scenario where i need to get the unique Name which we were given while attaching my custom workflow to a list in the association page like below





While finding through various variables exposed by workflowProperties we found that it has a workflowProperties.TemplateName which stores this unique name.

Nothing big i said :) , but hopes that it may help someone while trying to access a workflow programmatically.

1 comment: