.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

Sharepoint workflow + task + infopath form + ?!

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

I have a simple Vs2010 Sequential workflow. I have followed this guide: http://msdn.microsoft.com/en-us/library/ms580283.aspx and various others to get it working. So the connection from my workflow to the infopath form is OK and I can get data in and out via the Itemmetadata.xml file. However, one thing I can't work out how to do: add fields from the task item to the infopath form, e.g., the Status field.

I have tried adding a data connection to a SharePoint Library or List, but this creates repeating fields, i.e., for every item in the list - I want to just display the data for one task.

I figure I know the GUID of the task item so i could query the list from VS and pass it through to the form via ItemMetadata... but I assumed there would be an easier way to do this. The form should know what task item opened it... (for instance, if I go to the list, and click "Customise form in infopath" then the form it creates is perfect - except that it will only publish it back to the list it came from - I can't save it as a generic reusable template.

Sorry if I'm asking anything daft, but any thoughts or good tutorials on this?


weirdbeardmt, PhD, BSc. Silly name, but lots of letters.

View Complete Post

More Related Resource Links

SharePoint Designer workflow task - problem with multiple users selector in InfoPath form




I have got an issue with InfoPath form generated for my SharePoint Designer workflow task. There is a multiple users selector that requests users from a task assignee. The problem is that only the first user entered got saved.


I am using SharePoint 2010 Standard Server (release). Steps to reproduce are the following:

InfoPath Workflow Task Form "Loading" event handler only being called after App Pool recycled.


I have a Workflow that is using an InfoPath task form.  In the "FormEvents_Loading" method event handler I have some code that needs to run each time the form is opened.   I recycle the App Pool and open the form the code runs perfectly, but if I close and try to re-open the form the code is not run at all.  I can then recycle the App Pool again and on the next load the code executes just fine.   The code that is supposed to be run is a very simple statement to set a field value, so I don't think it is interfering.

Does anyone know what this might be?


Infopath form return XMl code during workflow task


1.     Review 7777.xml.

2.     Perform the specific activities required for this task.

Use the Edit this task button to mark the task as completed. (If you cannot update this task, you might not have access to it. Click here to request access.

Workflow doesn't complete when a task is updated directly from an infopath form.

I have an approval workflow that creates a task for a group to approve or reject an InfoPath form. But if a member of the group opens the form and updates the task from there, it doesn't complete the workflow. It only completes the workflow if they go to the actual task and update it from there. Does anyone know how to fix that?

sharepoint workflow with infopath form

Hi all... when i deploy workflow with initation and task infopath forms, these forms uploaded into central admin But: status: installing workflowenable:No and no category or version then when I activate this forms this message appearence : This form template cannot be activated because it is still being uploaded to the farm. Wait until the form template's status is Ready and try again as aresult when activate my workflow, the initiation form unloaded and get error message so what 's the problem?????????????? Thanks

How can i have form used by infopath with workflow sharepoint 2010 ?

Hi all, I have sharepoint 2010 and infopath 2010. I would like to create a workflow which sends a task to a user every week. The task should be done in infopath 2010. How can i do that ?   Thanks

create task edit form issues for sharepoint 2010 workflow using visual studio 2010

I use infopath 2007 created a task edit form and I use VS 2010 to create a sequential workflow.I want to use the custom tash edit form in the workflow.The problem I got is the InfoPath form doesn't get deployed to sharepoint. I'm able to upload the infopath form to sharepoint though central admin app. here is the element.xml :<Elements xmlns="http://schemas.microsoft.com/sharepoint/">  <Workflow     Name="WorkflowProject4 - Workflow1"     Description="My SharePoint Workflow"     Id="e6aa6cdb-667f-456a-b216-7639a1dcd3c7"     CodeBesideClass="WorkflowProject4.Workflow1.Workflow1"     CodeBesideAssembly="$assemblyname$">    <Categories/>    <MetaData>      <AssociationCategories>List</AssociationCategories>            <Task0_FormURN>urn:schemas-microsoft-com:office:infopath:TaskForm:-myXSD-2009-12-10T22-33-23</Task0_FormURN>      <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>    </MetaData>  </Workflow></Elements>and here is the feature1.template.xml<Feature xmlns="http://schemas.microsoft.com/sharepoint/">  <Properties>    <Property Key="GloballyAvailable" Value="true" />    <Property Key="RegisterForms" Value="*.xsn"/>  </Properties></Feature>anything

How to override the style values in a sharepoint workflow task form


I've created a aspx task form, and it's working as planned.  However, the window that is popping up when the task form fires is too small, and I would like to set the initial height/width to my own values.  How do I override the standard sharepoint css/style values so that I can control the size of the task window?


Rocky Sanders

Problems when deploying sequential workflow with association Infopath form of sharepoint 2010 using


I’ve create a workflow project with infopath in it. And I get the error

 “Error occurred in deployment step 'Activate Features': Unable to locate the workflow's association data. To restore the association data to the workflow, restart the workflow settings wizard by selecting the workflow node in Solution Explorer and then clicking the ellipsis button (…) on one of the properties in the Properties window that has an ellipsis button.”

I'd really appreciate of any help.

Custom Task form of a SharePoint Designer workflow is not displaying correctly


We have created a custom workflow using SharePoint Designer. We are using one action “Collect Data from a User”. As you know, this action sends an email to a user with a link to a task form where user is supposed to accept or reject a request. We are encountering following issues with this form:

  1. Form is not a workflow form, it is a task item of the task list that the “Collect Data from a User” action of the workflow creates.
  2. Form opens as an item of the workflow task list in View mode (DispForm.ASPX) instead of Edit mode (EditForm. ASPX)
  3. When user clicks on “Edit Item” button, it displays all the fields of the task as editable – we want only the Approve/Reject option buttons and the comments TextBox (that we created during the workflow design) to be displayed as editable

Can someone please explain what is going on and how can we resolve the above issues?

InfoPath XML File SharePoint Workflow Edit Task Button, XML file is downloading

I am using the inbuilt Approval Workflow on a InfoPath forms library. Now in the Edit Task Page as well as in the Edit Task Dialog that appears from within Outlook, the InfoPath Form's link is given. But as the form is an .XML file, it just gets opened as a normal XML in the browser or gets downloaded. It should open within the Forms Server URL, where InfoPath form gets rendered in the browser itself. How do I change this? This seems to be a common problem posted by many.

Uploading a file over 1mb in InfoPath task form causes workflow to error



I have created a custom workflow which requires a file to be uploaded using an InfoPath task form. When i upload a file under 1mb the workflow completes and its status is shown as Completed. However; when a file over 1mb is uploaded, the task completes and the workflows status is shown as In Progress for roughly 1 minute, after which the status changes to Error Occured. The strange thing is the workflow has completed as the document is taken from the InfoPath task form and uploaded to a document library successfuly, as the workflow has been developed to do.

Can anyone tell me how to resolve this issue and what is causing this to happen? The error logs show nothing and i have configured InfoPath forms services to allow documents up to 50mb in size.

Any help would be much appreciated




Pulling data from SQL tables in a Sharepoint Workflow based on an InfoPath form submission


I'm not sure this is the right forum for this, but here goes:

I'm creating a workflow that kicks off when a user submits an InfoPath form to a form library on a Sharepoint 2007 platform.  The workflow should find the manager of the user that submitted the form from SQL and email that person for approval before the next step is run.  Is this possible in Sharepoint 2007 or is using SQL in a workflow only a feature of Sharepoint 2010?

Thanks in advance

Using Infopath form fieldnames in a workflow fails



I designed a form in Infopath and I published it on a SP2007 server to use in a workflow in a library. That goes fine. In the workflow I send an email message. I can use the fields from my Infopath form in the message that I create. 
If the workfow is starts, Shrepoints sends me the message. But it does not use the fields from my InfoPtah form in the message in stead I see questionmarks.

Why doesn't it show the fields?

I alse saw (maybe this makes it clear) that when I let it dipslay the URL in the message, it show: http://1.portal.lucasonderwijs, but the actual site is whithout the "1" and it should also start with https://

Has anyone seen this before?

Thank you,


Updating Task Lists and Form Libraries From Workflow Form


There are actually two separate (I think) problems here. The scenario: I used the SharePoint Designer 2007 to create a workflow attached to a form library. When a form is submitted to the library, a To-Do-Item is created on a task list. The To-Do-Item is initially assigned to a GROUP. A user from the group then selects the name of an individual from a choice list in edit item. This person now becomes the Assigned To for the task.

What is needed is 1) To update the Assigned To column of the Form library when someone in the GROUP assigns the task to an INDIVIDUAL; and 2) To have the Due Date from the submitted InfoPath form propagate to the task list.

I've tried having one workflow try to do everything and also having a secondary workflow set up on the task list to do the task assignment update but have not been successful in solving either issue. I don’t think that I am really understanding how to Define Workflow Lookup when not working with the Current Item. I know what fields I want but I don’

Insert image into Infopath form and save to SharePoint as PDF file


I have an InfoPath web-enabled form in MOSS 2007, that is integrated with a K2 blackpoint process for an approval workflow.

Once the form (a Purchase Order request form) has been approved in the K2 workflow process, I switch the form view to a "print-friendly" view for the requestor to view from the browser.  However, now I need to go one step further with this scenario:

1) I need to somehow insert/embed an image with the scanned-in signature of the approver (likely stored in a SP doc library) at the signature line section of my form.  Also, what are the security requirements for storing such images, but not granting all users access to these (e.g. only services accounts that need to access this for embedding into the form, etc.)?

2) Then I need to convert this final "print-friendly" view of the form (with the signature image) to a PDF document so that I can store it in SharePoint (and email it to the requestor using K2's email event capabilities).

Can anyone help me with a solution to both of these requirement, or point me to some resources for this (even 3rd party components are open-game).



InfoPath form checked out so 'on create' workflow not being started


Hi all,


I have found a couple of threads asking for advice on how to check in an InfoPath form when it’s saved or submitted to a forms library. The reason for doing this is so a workflow can start based on a new item being created in that library, and so it doesn’t just sit there with a “Starting” status.


The answers I have found contradict each other:

·         You have to do it with a workflow.  This can be done easily with SharePoint Designer if that's an option for you. Source:

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