.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Custom ListItemMenu Element call custom Workflow

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :SharePoint


i created a custom ListItem Element with SPD2010, now i want to start a custom Workflow (Visual Studio) when i click on the menuitem.
I added my Workflow to the List Library, in my SPD2010 appears the workflow, but not in the workflow initiation dropdownlist in the custom listitem menu properties.
Can anyone help me?


View Complete Post

More Related Resource Links

Windows Workflow: Build Custom Activities To Extend The Reach Of Your Workflows


This article covers the core components required for building custom activities in Windows Workflow Foundation.

Matt Milner

MSDN Magazine December 2006

Sharepoint Wiki Custom Workflow


Has anyone done custom workflows for a sharepoint Wiki page? 

The workflow I'm trying to do is, whenever a new wiki page is created I want a new Discussion page  to be created for that wiki page?

Any Help?

Proper setup using Infopath and Custom Workflow using VS 2008



I have been struggling for a couple of days, trying to set up a decent
structure for an Infopath project using a custom workflow using Visual Studio 2008.

I had a solution with two projects:

1) Sharepoint 2007 Workflow

2) Infopath 2007 form w/code-behind.

I included the xsn, in the VS solution, but after a day or two,
something went wrong, and I lost some work. I still do not know what
happened, but I could not get my changes to persist afterthat  Doing research I have read that this
stucture, using Infopath xsn, within VS does not work correctly with Source
Control. I am using VSS.

So I since made a change to the set-up so that the .xsn (form template) is separate from
Visual Studio. However, I need to leave the code-behind in VS, since I need to debug

This is my latest problem. I have been unable to attach to the correct
process, as VS generates cachse files, and who knows what else.

My question is simple. What is the supported method for debugging InfoPath
code/behind, which uses a Sharepiont Workflow?

I just also want to say that one should not have
to spend a few days just trying to setup a working development environment.

This should be trouble-free, but it is far from being so. I

databind from a custom function call


in datalist templatefield, i want to bind an imagebutton's visible property. the scenario is .. it is a picture comments page like one in facebook. if its your own comment, the delete button is shown, otherwise not.  the problem is .. for the imagebutton i want to set visible = false, if the user logged in is the same user as the one who commented. how can i do that ? please help

currently im using this code on datalist databind event. but the label is returned as null

public bool set_visibility()
        Label lb = DataList3.FindControl("Label7") as Label;

        if (lb.Text == Session["user_id"].ToString())
            return true;
            return false;

findcontrol dosent return the control.

Infopath button click event in custom workflow code.


Hi All,

I have designed the infopath form(Init) and integrated with my state machine workflow. i want to access button click event (designed in Infopath form) in my workflow code.

Can you help me.




Custom sequence activity deriving from System.Workflow.Activities.SequenceActivity

Hi, I try to create custom sequence activity. I found some sample (http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/thread/f54e8eb2-29d9-46f6-ad96-766fe6fad333/). But this custom activity looks ugly (to separate nested activity using ellipses instead of arrows). My question is - how to create custom sequence activity, which will look like sequence activity. I also found this sample - <ContentPresenter x:Uid="ContentPresenter_1" Content="{Binding}" Style="{x:Static sacdt:DesignerStylesDictionary.SequenceStyle}"/> When I used this ContentPresenter my custom activity looks like System.Workflow.Activities.SequenceActivity, but I couldn't put on it another activity. I also created class, which derives from System.Workflow.Activities.SequenceActivity, but I couldn't see it in toolbox. My question is - how to create class, which derives from System.Workflow.Activities.SequenceActivity and is visible in toolbox or how to use ContentPresenter for sequence activity, which allows put on itself another activity.

Custom Ribbon action using quick step for workflow

I created custom button using the quick step in ribbon, and configured to invoke a workflow. It shows start and stop page of workflow where I have to click start. How to start workflow directly from the ribbon without this redirection to page.  

SPD custom workflow cretating _.000 in list

Hello,I have a custom workflow activity, that creates a document library each time an item is created and assign values to this item including a hyperlink field. However my issue is that when i open the list with SPD i have a ID_.000 (empty) file created for each new item in the list. Is this normal?? If i remove from the workflow the action that sets the value for the Hyperlink field i don't get this behavior. Any idea. thanks in advance.R

How to create custom task form in state machine workflow?

Hi, I want to create custom task form in state machine workflow. How can I create & install?  G. Goyal

this custom workflow....possible?

Hello, just wanted to check if developing a custom workflow in Designer is the right way to go for what i'm trying to do, I'm a newbie so please bare with me....any help will be greatly appreciated~! Basically I would like to have a custom list with a content type, and when the content type is created for the first time (first stage) I would like to have few columns that are imported from another list, and a few empty ones that the user enters manually..the users enters information and saves, and is done with the first stage. (second and final stage) is where the user goes back to the content type where he/she left off and approves/disapproves the content type, where if it is approved the user is directed to a new page with columns from the first stage + additional columns to enter data....  user enters the additional data, saves, and it is listed on the custom list. If it is disapproved, it either just goes to the trash can or is archived.... is this possible with SharePoint workflows? Thank you very much for your time.   John

Start a workflow from timerjob on custom list

I have built a working custom workflow which works fine. I need to start this same workflow from timerjob on a custom list. The timerjob catches following error. Value does not fall within the expected range.Microsoft.SharePoint   at Microsoft.SharePoint.SPFieldMap.GetColumnNumber(String strFieldName)    at Microsoft.SharePoint.SPListItemCollection.GetRawValue(String fieldname, Int32 iIndex)    at Microsoft.SharePoint.SPListItem.GetValue(SPField fld, Int32 columnNumber, Boolean bRaw)    at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowException)    at Microsoft.SharePoint.SPListItem.GetValue(String strName)    at Microsoft.SharePoint.SPListItem.get_EffectiveBasePermissions()    at Microsoft.SharePoint.SPListItem.DoesUserHavePermissions(SPBasePermissions permissionMask)    at Microsoft.SharePoint.Workflow.SPWorkflowManager.StartWorkflow(SPListItem item, SPWorkflowAssociation association, String eventData, Boolean isAutoStart) Any help on this will be appriciated. Thanks,    

Custom Workflow Activity dependency property FieldNames

I have a custom actvity in VS2008. All is well until I added a new dependancy property like so: public static DependencyProperty EventLookupColumnNameProperty = DependencyProperty.Register("EventLookupColumnName",typeof(string),typeof(FTFSyncEventToAttachmentListItem)); public static DependencyProperty EventLookupColumnIDProperty = DependencyProperty.Register("EventLookupColumnID",typeof(string),typeof(FTFSyncEventToAttachmentListItem)); [Description("Event Lookup Column Name")][DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)][Browsable(true)][ValidationOption(ValidationOption.Required)]public string EventLookupColumnName{get { return ((string)(base.GetValue(EventLookupColumnNameProperty))); }set { base.SetValue(EventLookupColumnNameProperty, value); } [Description("Event Lookup Column ID")][ValidationOption(ValidationOption.Required)][Browsable(true)][DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]public int EventLookupColumnID{get { return ((int)(base.GetValue(EventLookupColumnIDProperty))); }set { base.SetValue(EventLookupColumnIDProperty, value); }}Then in the actions file:    <Action Name="FTF Sync Event To Attachment List Item"   ClassName="DP.Sharepoint.Workflow.FTFSyncEventToAttachmentListItem"   Assembly="DP.Sharepoint.Workflow, Version=, Cultur

Controlling Content Approval in custom SPD workflow

I've designed a custom workflow using SharePoint Designer 2007 on MOSS 2007 to perform the following: User uploads a document to a document library. Workflow triggers and waits for designated Approvers to either Approve or Reject the document. IF REJECTED, the user that uploaded the document is sent an e-mail and the document is deleted from the document library. IF APPROVED, the document is moved to a second, "secured" document library. This all works fine except for one thing. I want to record in a custom column who actually approved the document. As the workflow starts as soon as the document is uploaded to the document library then the workflow is running under the context of that user - not the user who approves or rejects the document. Does anyone have any idea how I could capture who approves this document through my custom SPD workflow?

custom workflow using aspx forms

HI, Iam new to sharepoint, I have to create custom workflows using aspx forms, i search lot of sample examples using Infopath, and sharepoint Designer, but i was unable to get sample examples using aspx form base workflows. Thanks for helping me..  

Custom SPD workflow actions not showing in prod enviornment

We have developed some SharePoint designer workflow actions and in our production enviornment we get the behavior where the Custom actions show up in the actions list but when select the associated sentence text with paramters is not displayed.  We have double (and triple) checked that the actions files and the assembly signatures match - the SAME files have been installed in another environement and everything works. We believe we have tracked it down to when SharePoint Designer makes a call to the site collection web service webpartpages.asmx - GetAssemblyMetaData the client machine (with SharePoint Designer running) is not getting a full response to this call.  Any thoughts / ideas are appriciated!  Rob Roach     

Workflow - automatically create discussion item using title field of of custom list item as its subj

Anyone any ideas as to how I can configure SharePoint to create a discussion item using the title of a list item. e.g. user creates list item on a custom list - SP automatically creates a Discussion thread for this list item in the discussions list. I'm guessing this can't be down OOTB . would I be looking at SPD or a coded solution ? regards, Counie

Problem with custom workflow action (SP2010, SPD2010)

We have created an assembly containing 3 custom actions to be used in SPD. Everything works correctly; however every Change and Publish cycle requires me to recreate the lines (steps) containing the custom actions. It is simple mechanical replacement but still is a pain and i would like to figure this out. I've spent considerable time on this already with no solution in sight. Tried clearing out proxy cache (http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/34632798-6e45-4eb3-ad3d-2f941c706cda ) Also checked web.config for non-referenced assemblies.  
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend