Do I Have To Use InfoPath Forms For Every Task Within A SharePoint Workflow?
Is it possible to use InfoPath forms within a SharePoint workflow for all but one of the workflow tasks? Our customer wants a particular task to use the default sharepoint page for editing that list item but disabling the form I was using for that task just makes the workflow default to the Task0_FormURN defined inside workflow.xml. If I make sure this definition is empty or non exsisting then I just get an error. It seems to me that if you want to use InfoPath forms then you need to go all out for every task.
You are right. You cannot mix Infopath task forms and custom pages in one workflow.
You can try to create a task within workflow with custom code.
var newTask = list.Items.Add(someUrl, SPFileSystemObjectType.File, someTitle); newTask["AssignedTo"] = new SPFieldUserValueCollection(new SPFieldUserValue(web, id, name)); newTask["StartDate"] = DateTime.Now; newTask["Body"] = "task body"; newTask.Update();
And in this case your workflow will not be "watching" for task changes. I assume you would watch for workflow item changes with a
hope this helps
- → Licensing system for client side code web application
- → Can ASP.NET AJAX partial rendering work inside a SharePoint 2007 application page?
- → Windows Sharepoint Services (WSS) and Forms Authentication - Passing those credentials to other ASP.NET Forms Authentication Apps
- → Bypass invalid SSL certificate errors when calling web services in .Net
- → Errors creating WebPart subclass in another assembly
- → Do I have to use InfoPath forms for every task within a SharePoint workflow?
- → How do I check if a Sharepoint Document Library has the Require Approval flag set, using the Sharepoint API?
- → Jquery - JS Clear table before new search, whitin function or out?
- → Automatically open Office add-in on SharePoint Online
- → Knockout unable to process binding in a specific function
- → Reformat list to grouped structure