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


Top 5 Contributors of the Month
david stephan
Post New Web Links

How to start a workflow programmatically that was created in Sharepoint designer 2010?

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :SharePoint
 
Trying to start a workflow from code.  The workflow itself has been created in SPD 2010, which from what I understand, means that there is no assembly until the first time it's ran.  However, when I try to find the association record, that doesnt exist.  Is this becuase the 'code' hasnt been compiled yet?  If so, how can I have sharepoint start the just-in-time compiler for a declarative based workflow, so that can kick it off with in code? tia Rocky SandersRocky Sanders


View Complete Post


More Related Resource Links

Workflow "Failed on Start (retrying)" when new item created by BizTalk SharePoint Adapter

  

We've been using the BizTalk SharePoint Adapter to load various different contents into a MOSS 2007 Document Library. The library has a Microsoft Office SharePoint Designer 2007 workflow (sequential workflow created in Designer) which starts automatically when a new item is added to the Document Library. Or, at least, it eventually starts automatically.

 

For some unknown reason--and this is what we're hoping some of you may have some ideas on--the workflow fails to start on the first try, producing the "Failed to Start (retrying)" message. When the timer job comes back the second time, the workflow starts successfully, but this causes us to loose five minutes of potential work time (not to mention making us look bad to the VPs and CTO because they see the failure message).

 

In checking the log, I find the following pair of error messages each time the "Failed to Start (retrying)" status occurs:

 

08/27/2007 13:49:43.24  w3wp.exe (0x0CA0)                        0x1438 Windows SharePoint Services    Workflow Infrastructure        72fs Unexpected RunWorkflow: Microsoft.SharePoint.SPException: <Error><CompilerError Line="1" Column="1" Text="The root activity type is invalid.&q

SharePoint 2010 Long Starting if start workflow programatically

  

In SharePoint 2010, I'm starting workflow #2 programatically from my workflow #1. See code below:

					SPList currentList = web.Lists[new Guid(ListId)];
					SPListItem currentListItem = currentList.GetItemById(ListItem);

					//resolve any lookup parameters
					string workflowId = base.ProcessStringField(WorkflowIdentifier);

					//find workflow association by name
					SPWorkflowAssociation workflowAssoc = currentList.WorkflowAssociations.GetAssociationByName(workflowId, Thread.CurrentThread.CurrentCulture);

					if (workflowAssoc != null)
					{
						//start the workflow
						SPWorkflow workflow = site.WorkflowManager.StartWorkflow(currentListItem, workflowAssoc, workflowAssoc.AssociationData, SPWorkflowRunOptions.Synchronous);
					}

And workflow #2  will hang with Starting status (1-10 minutes), Then the workflow #2 status would be modified  to Completed.

I couldn't find how to start the workflow # 2 immediately and complete immediately without several minutes delay

How to use display Text in Hyperlink For SharePoint 2010 Designer Workflow

  

In SharePoint 2007 Designer, I have used the Hyperlink column to store the link "http://www.sharepoint.com/Default.aspx, Details". The details text will be shown in the Hyperlink column. Everything works fine in sharepoint 2007 Designer workflow.

In SharePoint Designer 2010 Workflow, I used the same method but the hyperlink column is displaying the full text "http://www.sharepoint.com/Default.aspx, Details" instead of only Details

 


Video: Microsoft Visio 2010 and Microsoft SharePoint Designer 2010 Workflow

  
Learn the specific roles Visio 2010 and SharePoint Designer 2010 play in the development process and how these tools can be used in concert to create a workflow. (Length: 13:22)

How to get User group in SharePoint Designer 2010 within workflow?

  
Hi, How to get user group in sharepoint designer within workflow? Basically I have to compair that current user is belongs to particular group or not.  How can I get check user group in workflow's if condition? G. Goyal

Designing a Workflow in Sharepoint Designer 2010 Help

  
I Have no experience using Sharepoint Designer and I am trying to design a test workflow to see how usefull workflows will be at our company.  I have specific steps that I would like the workflow to follow but I do not know how I would go about implementing these steps in the workflow.  I have done a lot of research online and have had no luck finding anyhing sililar to what I am trying to do which makes me wonder if Sharepoint Designer is capable of doing these things. Here are the steps I would like my workflow to take 1.  Propt the user to fill out a form 2.  Send this form to a specific user 3.  Specific user then selects a person from a different department to send this form to 4.  The selected user then sends multiple documents to the person who started the workflow I know there is a collect data action but once the data is collected i do not see any action to send the collected data to a user.  Also I know there is a send document to repository action which would be usefull if there was some action to prompt the user to fill out the document at the start.  Like I have said before my Sharepoint designer knowledge extends about as far as what I have been able to teach myself so I would greatly appreciate any help I can get with this.

Copy List not Working in Sharepoint 2010 Designer Workflow

  
I am having two custom lists,  First_List(Title, ID, Status) and Second_List(Title, ID) here Status is a choice menu with values Selected and Rejected I am copying data from First_List to Second_List using WorkFlow with SharePoint Designer, When I am inserting data in first list. For that I have written in workflow action if CurrentIten. Status equals Selected  Copy item in current item to Second List now the Problem is that only the Title field is getting copied into the Second List but I am unable to copy the ID field. I am unable to understand whats the problem    

Making your own cusctom workflow developed in visual studio 2010 available in sharepoint designer 20

  
Hi, i have a custom workflow(sequential),developed using visual studio 2010. Now, i want to make it available to sharepoiint designer 2010,as an action.Has anyone done something like dis before? I have tried creating an actions file and changes in web. config ,but when i open my designer it says it cannot find the assembly(my custom worklow). What does it mean,i have tried this method by watching solutions on internet. If anyone has done this task, kindly guide me thanks a lot :)

2010 - SharePoint Designer Workflow

  

I created a SPD workflow on a task list in SharePoint Server 2010.

The workflow generates an e-mail to the "Assigned To" user.  When configuring the To in the e-mail, I simply references the "Assigned To" value in the list.  Is that good enough?  Will it find their e-mail?

Also, what if the Assigned To allows for multiple values?

 

 

 


Sharepoint designer 2010 workflow

  

Hi,

 

I want to add two columns from an existing form library into "Collect data from user" action rather than adding a new column so that when the approver opens the "Collect data from user" content type, he should be able to see those two column values from existing form library in to that "Collect data from user" content type only. Is that possible?

 

Thank you.


Start a SharePoint 2010 WorkFlow using JavaScript

  

Hi,

I need to start a SharePoint WorkFlow using JavaScript, the JavaScript would be in bespoke Asp.Net page. Any ideas ?

Thanks

Vaibhav


SharePoint Designer 2010 Workflow Email alert customization

  

Is this is possible to make html format Email alerts in SharePoint designer 2010??

Thank you


A. Shilambuselvan

SharePoint 2010 Workflow "Failed on Start"

  

I have a list workflow for SP 2010 that was previoulsy working this morning and decided to "Fail on Start" at some point.  I have done nothing to the list or workflow settings, I have just been working in SP Designer 2010 creating the WF.  I have searched high and low and have found all of the same answers that get me no where.  The suggestions include comparing the Workflow.xml and/or feature.xml to the name .dll in the GAC. 

I have no workflow.xml or feature .xml files other than what I find in my Visual Studio folders from workflows past.  This time I am not using Visual Studio.  I am using SPD 2010, does it keep those files?  Secondly, I find only one of my workflowname.dll's in the GAC, also from an old VS workflow.  My current workflow.xml, feature.xml and currentworkflow.dll files do not exist on my workstation or server.  WHAT am I missing here??? :-(

Thanks!


North to the Future

How to Create Sharepoint Workflow (designer) on Calender List when a new list item is created

  

Hi,

I need to create a sharepoint designer workflow on Calender List.The functionality is that, Workflow on Calendar list that sends an e-mail notification each time new event is created along with event details.

Any help appriciated..

 

Thanks

Srikanth Reddy

 


sharepoint designer 2010 convert workflow to reuseable workflow

  

I have a SPD Workflow that I now want to import into Visual Studio 2010.  I believe that the workflow has to be reuseable before I can do this is that correct?

Has anyone ever converted a SPD workflow into a VS 2010 workflow?

Thanks


Leland Usher SharePoint Developer/Administrator

Sharepoint Designer 2010 workflow - sending workflow email hyperlink to item

  

Good day all

I have a simple request. I have created a InfoPath form which I have published to SharePoint (all is well)

I have created a workflow using SharePoint Desinder and this workflow send off an email to a user , I have pasted the link to the document library in the email but would like the user to open the form from their email and not go to the document library

 Can somebody please advise

 Laurie


SharePoint Designer 2010 workflow specified in Content Type retention policy not starting

  

Hi,

I have a SharePoint Designer 2010 resuable workflow that uses the "Start Approval Process" Task Action. This workflow needs to run after a document has been declared a record. So I have a Content Type that has an Information Management Policy (IMP) attached to it. And I have 2 retention stages specified in the IMP. The first retention stage action is to run the workflow. And this Content Type is associated with the Document Library containing the records. But for some reason, the SPD workflow never gets triggered. The document has been successfully declared as a record. I also see in the document's "Compliance Details" screen, the "Scheduled Occurrence Date" is set to the proper date, but the workflow never got started on that date. I tried it with different dates that I set in the document, to ensure that the workflow runs on "Scheduled Occurence" dates such as 11/19/2010, 11/20/2010 to no avail.

What am I missing? Any help/suggestions would be greatly appreciated as always.

Best regards,
Kiran K


Categories: 
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