.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

sharing data between workflow during execution

Posted By:      Posted Date: September 16, 2010    Points: 0   Category :Windows Application
Hello, I have number of workflows which are running at the sametime. I have a activity that gets the file from a remote location. It is possible that multiple workflow might require the same file. Is it possible, that once a given workflow has requested for the file, and if someother workflow wants the same, instead of looking for file, it waits for it, when the other workflow has downloaded the file, then it can use the same file. Similarly i have workflow loading files to a dataset, it is possible that other activity might want to load the same to a dataset can somebody please point to me, how can i do it, i have read about extension, but I am not able to find any documention, thats shows how can i use them for sharing information between workflows.

View Complete Post

More Related Resource Links

Modify User in Collect Data from User Workflow


I've created a workflow with a Collect Data from User action that emails a Group when the task is created. Once the task is claimed by an individual, the Assigned To column in the task list is updated to display that person's name but once the task is completed the email variable for the action is not updated and the group is emailed instead of the person listed as Assigned To.

So the question is this: Is there a way to update the user varialbe in the workflow task once the task is completed, or would I need to build my own workflow and use the Send Email action?

Share Point Designer 2007 Workflow (Sequential) - multi-collect data from user

I am currently building a multi-step workflow using ShrePoint designer for MOSS2007. I am getting a bit confused as to if I have an error or if I am doing something incorrect. Here is what I have going. My workflow consists of something similar to the following New document comes in, a collect data from user routine is ran and assigned to a reviewer. My understanding when I create a collect data from user WorkFlow step is any data I request is saved in the "Tasks" list. Therefore I need to grab the workflow task ID in order to later lookup what the reviewer submitted... I understand this...   However, I have one more collect data from user workflow step and I have one more item to collect. Even though this is a brand new collect data from user workflow step - does the collected data still go into the "Tasks" list? In other words, if I have two steps in a workflow and both of these steps are "collect data from user", does the data from both steps go into the same "Tasks" list?  I could see how this might be possible as long as the Task list columns contain all the items for all the different "collect" data from user steps.  I don't see two different Tasks lists representing or named "Reviewer" or "Final" or anything, so I assume the items are all in "Tasks"   However..

can a Workflow access a stored procedure and pass the parameters from the list data to the stored pr

The reason that I would like to consider this functionailty is because my table architecture is complicated and I do not want to modify my master table to accept all of this data where some of the data should be normalized into sub tables.  Has anyone see evidence of the stored-procedure parm approach?  Is this best accomplished through VS 2010 or can I do it through SPD? Thanks

Automatic Workflow execution

Hi folks, I have a task list which i have set to (require content approval for submitted items). I want to move the tasks which are APPROVED to another approved list. To accomplish it, i created a workflow in SPD. if Current Item:Approval Status equals 0;#Approved                 Email Current Item:Assigned To                 then Copy item in Current Item to Approved Tasks                 then Delete item in Current Item   I have set the workflow to automatically start when a new item is created or changed. When i approve a task; the workflow does not start. I have to manually start the workflow which then works fine as designed. Please advise what is missing for the automatic worklflow execution to work.You miss 100% of the shots you do not take!

How to do Time bound workflow execution

The requirement is that the workflow should complete in a time specified as a workflow parameter, if it is not able to execute all the activities , it should terminate itself. Can anybody give me an idea how i can do that. regards

Workflow data missing from Document Library

Hi, We have this strange situation where the workflow status is missing from document library views. Here is the situation: I have a Document Library with 3 OOTB approval workflows configured to start manually. Process is that user uploads a doc, start the first workflow, once it gets completed starts the second, and so forth. Now if I check the All Documents view of this Document Library, I can see these three workflows have 3 columns and that shows the status of the workflow - say "In progress", "Completed" etc. Now our users who use this document library and workflow complains that they cannot see these status of the workflow after some days. If a workflow is completed and status shows completed there, but after some days that column is blank. I've checked the modified data for the documents and this issue according to the user happens to documents that was uploaded 2 weeks back too, which means this doesn't happen to old document only. This document library has Major and Minor versioning enabled. Why does this happen, does SharePoint remove data for completed workflows? I checked the document's workflow page and its empty; nothing under running workflows and nothing under completed workflows. In Doc Library settings - Workflow settings I could not find an option View Workflow reports. That page has the following details: Use this page to view or

rules execution without workflow and ruleengine

Hi,   I have a XML file with rules. If I execute that XML file using Rule Engine, it is taking lot of time. So I wonder, Can i execute the XML file with C#? convert that file to regular C# code in runtime? and execute it without RuleEngine. Is there any possibility?

Insert "View Entries..." data into custom workflow e-mail

Scenario: There is a custom task list (not created by me) that has a Multiple Lines of Text column called [Description] that is displayed in views as a "View Entries..." hyperlink to the DispForm. On the DispForm there are hyperlinks to each previous version as well as the modifying user. Problem: I need to create a workflow that e-mails the person to whom the task is assigned to with looping functionality whenever it is reassigned. All of this works fine, except I am unable to insert the [Description] column info into the e-mail. I have tried adding the [Description] column lookup to the body, as well as assigning the contents to a string variable and displaying it, but none of these things work. I also discovered that when I switch to Datasheet view the entire [Description] column is empty. When I turn off "Append Changes to Existing Text" to the column, the "View Entries..." hyperlink disappears workflow functions just fine, but since the descriptions can run rather long people don't want to remove this functionality. Any help on the subject would be apprecated!

rules execution without workflow and ruleengine

Hi,   I have a XML file with rules. If I execute that XML file using Rule Engine, it is taking lot of time. So I wonder, Can i execute the XML file with C#? convert that file to regular C# code in runtime? and execute it without RuleEngine. Is there any possibility?

Reading Infopath Repeating Table data in .Net Workflow


Hello, i have an infopath for that has a repeating table on it that i am using for users to add comments. The table contains a couple of textboxes, one that automatically inserts the users name into it and the other for the user to enter their own comments. I want to be able to read the contents of the repeating table when a manual workflow is started against the form list in sharepoint so that i can email all the users who have left comments on the form.

I am struggling to find any info on reading repeating table data from an infopath form in a .net workflow. I have tried using an XPathNavigator to select the repeating table but it only displays the first comment in the table.

Can anyone provide any info on accomploshing this or point me to any articles that explain how to do this?

thanks a lot



asmx for sharing data from ms sql



I will use web services to share my sql server data for b2b purposes. I am going to create the methods inside the websiervice and then the website I want will be able to use it. But I have some problems implementing this;

  1. do you think it is the right way to do this? the website I am cooperating is an e-commerce web site and they will sell my products.
  2. can any attacker reach my asmx code? I will have some datas inside this code that I dont want sombody to see. (sql server info, web.config info, etc.)
  3. how can I validate which user can use this web service and which user not?

I am new at this web service thing and only source I can find is the below one;


I eagerly await for the responses.

Thsanks Smile

pass data to event in workflow



i have the event that calling  my workflow to start,then this workflow when is completing must passing data to this event.

how i can call(and pass data to)event in sequential workflow programming?(in sharepoint2010,visual studio2010) 


VS 2010 Workflow -Linq Data Connections



We have several workflows to build that will use a common linq data class.

What is the best way to expose this class to all WF projects?

Tried a solution with 2 projects 

  • The data class
  • The workflow with references to the data class

But the workflow always "failed on start"

Soon as I removed the references to the dataaccess project it ran OK



Error converting data type nvarchar to numeric in Store Procedure execution



When I execute a Store Procedure via 'EXEC sp_XXX @p1, @p2' I'm getting this error 'Error converting data type nvarchar to numeric'.

After diggin into the TSQL code I have found that there's a field (type: nvarchar(200)) breaking the execution and resulting on the error.

If I query the table and the specified field with the same parameters as the Store Procedure the results are ok! If I execute the same code as the Store Procedure with the same parameters values the results are ok. The error only happens when executing the Store Procedure.

Any idea ?

Thanks in advance,

Gustavo Brian


If I cast the field to a smaller size value, as nvarchar(80), it works, but of course with data truncation.


Sharepoint 2010 List data to Word Template via Workflow


Ok, I am using Sharepoint 2010 and Designer as well as Infopath 2010. I have a requirement to send out a word document (via workflow) that will be a template that references fields from my Sharepoint List.

Any help is appreciated, I do not want to buy anything extra and a no-code solution would be best.


Display Originating List Data into Workflow Task



I have two needs that my users have requested. I am limited to SharePoint designer due to environment restrictions. 

  1. Is it possible to display information from the original list in the workflow task that was created? This is so the users don't have to click back into the original list to see the details of what they are approving.
  2. Is it possible to put the Approve / Reject buttons directly in-line with the tasks? This is so the user can approve the item without ever leaving the list of tasks they have been assigned?
Thanks in advance for your assistance!


Passing data into a Sharepoint Designer Form Action workflow


I have a workflow that is triggered by a "Custom Action" on a "Form Action Button" that I added to a DataFormWebPart in SharePoint Designer. So the workflow isn't associated to any list or document library. What I need to do is pass some data to this workflow so that it can do some useful stuff.

I see from here that Natalya Voskresenskaya shows a method that allows you to pass a single list item value into a workflow variable but if you hack this into the aspx file as suggested, when ever you subsequently open design view and the workflow on the button again, all the hacks are removed by SPD.

I have tried this method and it seems to work for one variable, but I cant figure out how to pass more than one. Here is another post that is very similar but slightly different.

In this post Ibrahim said on April 1st 2008:

"I am having difficulty building a Javascript string for my particular requirement; SPD had already built a concat
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