.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> SharePoint >> Post New QuestionBookmark and Share Subscribe to Forum

altertodo webservice code needs to troubleshoot

Posted By: cal_bonjovi     Posted Date: July 08, 2011    Points:5   Category :SharePoint
Approach in Using altertoDo webMethod 1. Add ref workflow.asmx 2. GUID = before starting the WF i get the templateID in the URL, den afterwards i manually started the WF 3. intTodo = item ID found in list. This code returns an error ----- "Bad 'todolistId' Parameter --- appeared in the second to the last line. Please advise what went wrong

localhost.Workflow ws;
private void btnStart_Click(object sender, EventArgs e)
ws = new localhost.Workflow();
ws.Credentials = new System.Net.NetworkCredential("Admin", "pass");
string strURL = "http://sp10server/testLibrary/CK.docx";
int intToDo = 3;
Guid GUIDToDoListID = new Guid("{53ece12c-f534-4581-8ef3-9ae34a4fe235}");
string strData = "<my:myFields xmlns:my=" +
"\"http://schemas.microsoft.com/office/infopath/2003/myXSD\"" +
"><my:TaskStatus /><my:Comments /><my:DelegateTo><my:Person><my:DisplayName>jc dl</my:DisplayName>" +
@"<my:AccountId>qi\hattaiwat.pusanti</my:AccountId><my:AccountType>User</my:AccountType></my:Person></my:DelegateTo>" +
"<my:NewDescription>new description through client</my:NewDescription><my:NewDueDate>2010-09-21 11:21:00</my:NewDueDate>" +
"<my:RequestTo /> <my:Decline /><my:dcr /><my:Status>Completed</my:Status></my:myFields>";
XmlDocument XMLTaskData = new XmlDocument();
ws.AlterToDo(strURL, intToDo, GUIDToDoListID, XMLTaskData);


No response found. Be the first to respond this post
Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend