Dienstag, 17. April 2012 10:29
I have attached an Infopath form as a task form in my VS workflow.
Now at the end of workflow I want to save the last task form as an archive in another document library with all data.
How is it possible? Please help me to solve this issue.
Thanks & Regards,Sanket Pandya
- Verschoben Entan MingMicrosoft Contingent Staff, Moderator Mittwoch, 18. April 2012 07:34 (From:SharePoint 2010 - Using SharePoint Designer, Infopath, and other customization)
Donnerstag, 19. April 2012 02:26Moderator
From your description, I understand that you want to save the task forum as an archieve when completing the task, an easier workaround is to use a specific list and copy the task item to the list in the complete task activity.
If you want to save the task as InfoPath form file, and publish it to the specific form library, you can try to first publish the form template to a form library, then in the workflow complete task activity, get the task item data, then create a form file instance based on the task data, and upload it to the form library using code.
More information, Programmatically create an InfoPath form from scratch using c#:
Programmatically create a browser enabled InfoPath form:
TechNet Community Support
Samstag, 21. April 2012 08:44
Thanks for your reply. It really helps me a lot.
But I have one issue with that. I have a form which contains fields like Text Box, Drop-Down List Box, Radio Buttons and Calculated Value field.
But when I Programmatically create a browser enabled Infopath form, It creates form when it only contains Text Boxes, But If try to add any other controls like Drop-Down List Box, Radio Buttons and Calculated Value field, it is not creating Infopath form but it only creates form with .xml and when we try to open that form in Infopath it gives error.
I am creating form with help of following link example.
Please help me out for this.