.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

How to submit workflow approve/reject through infopath form?

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

Instead of using the oob workflow approve/reject form. we would like to append approve and reject buttons and a comment input box to the infopath form. I couldn't make it work.  Any advice is appreciated. It is using infopath form with code behind and Sharepoint Designer workflow

View Complete Post

More Related Resource Links

How to create a workflow that submit an infopath form to a library of a specific user



can someone help me with this?

i'm using wss 3.0 and infopath 2007.

i have a form that need to be approved by a specific approver.

first when the user submit the form it send an email to the specific approver and the form is also submitted to a library.

so the approver gets an email and the approver need to get the form submitted to his library.

the email part is working fine. now i miss the library part.

i think i need to use a workflow. but how can i create a workflow that assinged a to-do item to a specific approver instead of a group.

in my library i have the following fields:

form name, created by and aprrover's name.

now i need the workflow to look up for the name of the approver and send an "assigned a to-do item" to the specific approver of the form

can someone help me with this?

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,


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

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 which is activated when infopath form created but need attached to another costing form als


I have a requirement to create an infopath form which is simple enough to create and is pretty much done.

It however has a secret which they didn't really mention in the doc or their "simple workflow requriemetns" and this is  that it goes some where for costing.

The idea of this is to automate a paper trail so I am thinking that this costing which is to be attached to this document should not simple be an upload onto the form but part of the workflow tasks.

My questions are.

If I have the follow workflow requiremetns.


1. User fill in form and submit

2. workflow then starts

3. (cost part next?) one group of people liase with accountants to ensure funding is posible and attach to form. two option I see here.

opt 1

The costing part is part of the workflow but if I do this I need the field to be read only for everyone except for a couple of groups is it possible in infopath to do this?

Opt 2

The costing is in a different library which the workflow create the new file this has it own workflow with a task to complete it and when completed workflow marks a field as complete before the main workflow will move on to next steps.

I would need to link the two forms together preferably in both directions would be nice what the best way to do this?

4 Once costing is co

Infopath form using Visual Studio - How to bind repeating table on submit button click ?


Hello friends,

   I have created infopath form using Visual Studio 2008

Form have 3 dropdowns and one repeating table which is bound by Datasource ( List from sharepoint ).

whenever i select appropritae values from drop down, Repeating table gets bound as datasource for dropdown and repeating table are same.

I have done conditional formating for repeating table using repeating table properties.


My Question:


Now i included one submit button and i want when i click submit button it will check DropDown Values and if appropriate record matching these values found it will fill repeating table

How i achive this ? as i dont find how to bind repeating table on submit button.

Please help if anyone have answer.


Thanks and Regards,


Kapil Bhosale.




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?

InfoPath Form: Encountered error while trying to submit the form from the browser

Hi,I have created a form in InfoPath, and i filled in the form in the browser. But there's an error apppeared when i tried to click on the submit button to submit the form. May i know is there ways for me to check what cause this error because i have no idea about this. "There has been an error while processing the form. There is an unclosed literal string. Line 1, position 543. System.Xml.XmlException: There is an unclosed literal string. Line 1, position 543. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr) at System.Xml.XmlTextReaderImpl.ParseAttributes() at System.Xml.XmlTextReaderImpl.ParseElement() at System.Xml.XmlTextReaderImpl.ParseElementContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at Microsoft.Office.InfoPath.Server.Xml.InfoPathXmlDocument.Load(XmlReader reader) at Microsoft.Office.InfoPath.Server.DocumentLifetime.DataObject.<>c__DisplayClass3.<.ctor>b__0() at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.Exception

Contact Selector Failed in MOSS Workflow Modification Infopath Form

Hi,   In my proof of concept Moss 2007 WF, I tested an Infopath modification form successfully.  Then the contact selector ActiveX control was added but it failed to open using the modification link of the workflow page.  In a different form for the WF initiation, I similarly created two CS controls and it worked there.  A snippet of the MOSS error is below   Object reference not set to an instance of an object.   at Microsoft.Office.InfoPath.Server.Controls.ContactPicker.RenderClientViewDataLeafContent(XPathNavigator context, IRenderContext renderContext, ControlViewData controlViewData, ScriptWriter writer)    at Microsoft.Office.InfoPath.Server.Controls.LeafControl.RenderClientViewDataContent(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)    at Microsoft.Office.InfoPath.Server.Controls.BaseControl.RenderClientViewData(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)    at Microsoft.Office.InfoPath.Server.Controls.ContainerControl.RenderClientViewDataContent(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)    at Microsoft.Office.InfoPath.Server.Controls.BaseControl.RenderClientViewData(XPathNavigator context, IRenderContext renderContext, ScriptWriter writer)    at Microsoft.Office.InfoPath.Server.Controls.CollectionControl.RenderClientViewDataContent(XPathNavigator context, IRenderContext rend

submit infopath 2003 form to a sharepoint list

hi, is it posible to add  an infopath 2003 form to a sharepoint list, not document library but a list. and can i create views from the infopath 2003 form?

InfoPath form web part stops the close on submit

I have successfully published HTML browser enabled InfoPath 2010 forms to form libraries in SharePoint 2010. Users can navigate to the libraries and click new docuiment and fill out and submit forms, and the behavior of submit is as programmed in the form namely I have a concat rule for form name and chose action after submit to close the form with a success message. The problem I am seeing is a little abstract so stay with me while I explain. I'm hosting a number links to web part pages with the infopath web part on them. I use a links web part to aggrigate about 16 forms links on a single page. Users can successfully click on a link, are migrated to the web part page that has the form displayed in the infopath web part and all is well till they click the submit (on the ribbon, or custom button or whatever) The form does successfully get saved into the form library, but the form does not close. I need to make this process very simple for users without any training expended on the process. I'd like to shift focus to the previous web page, or close the form or something dramatic visually to show the user that they have completed the form fill out, and allow them to fill another form. Codebehind examples gratefully accepted! /Robin    

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

Can i Start Workflow on Infopath form open?

HI, I Have a Scenario where when i open a Infopath 2010 form in Sharepoint 2010 as XML Form View Webpart, Custom workflow must be enabled, can i do this? If Yes, Please tell me steps to configure or code for starting a workflow. Thanks you all in Advance

Associating an InfoPath form as an initiation form of a workflow, and have it appear when workflow i

Hi all,   I've been working with and infopath form which I want to integrate into my Visual Studio 2008 SharePoint Workflow. I have done all the steps and can verify that the form works as it should, because if I associate the workflow and allow it to be kicked off manually, the form displays if i kick the workflow off... However, if I set the trigger to be "Start workflow when an new item is created", the form does not display and it goes straight into the code... why does my form not display when the workflow is triggered from a new item, but does if the item already exists??  Is there a way to get around it so that the form does show when a new item is created please?   Thanks, Ben

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

How do I submit an attachment in an Infopath Form to a Sharepoint list?

I have already written code to submit my infopath data to my share point list, but now I need to find out how to submit an attachment to the same existing custom list in Share Point 2007.
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