Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am facing some creepy error here. i am trying to alter a task using AlterToDo Method of Workflow.asmx Here is my code

strTaskdata = "<my:myFields xmlns:my= \"http://schemas.microsoft.com/office/infopath/2003/myXSD \" >" +

                        "<my:TaskStatus>Approved</my:TaskStatus>" +

                        "<my:FieldName_Comments>" + comments + "</my:FieldName_Comments>" +

                        "<my:FieldName_DelegateTo />" +

                        " <my:FieldName_NewDescription />" +

                        "<my:FieldName_RequestTo />" +

                        "<my:Status>Completed</my:Status>" +

                        "<my:PercentComplete>1</my:PercentComplete>" +

                        "</my:myFields>";
XmlDocument doc = new XmlDocument();
                    doc.LoadXml(strTaskdata);
                    XmlNode taskData = doc.DocumentElement;
                    XmlNode result1= objSPWorkflow.AlterToDo(ConfigurationManager.ConnectionStrings["serverURL"] + "_layouts/listform.aspx?PageType=4&ListId={70A94625-FBB2-489D-99DE-9297351FFEBB}&ID=" + taskid + "&ContentTypeID=0x010801004674E57FE8FF4405BCF9BB73A648A5EA006218189C591823448DA87D3E798B0716", Convert.ToInt32(taskid), new Guid("70A94625-FBB2-489D-99DE-9297351FFEBB"), taskData);

On executing i am getting a success message. Also Task Status, Status and % Complete are affecting but the comments fields is not affecting.

Could some one please help me out here?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.