Hello,
Can someone please help me put this in place.
I have an external api that I am connecting to, to update some data (which is in XML format).
I have the following set of code to update the data
XmlElement ticket = doc["Ticket"]; // doc is xmldoc
foreach (XmlNode node in ticket.GetElementsByTagName("Custom_Field"))
{
if (node.Attributes["display-name"] != null && node.Attributes["display-name"].Value == "Summary")
{
node.InnerText = txtComment.Text; // overwriting my comment for summary
break;
}
}
I am not sure in using HTTPWebRequest and post method. to post these changes back to the uri.
I hope I am clear with my query. Please let me know if I should provide more info. Thanks for any help.
Can someone please help me put this in place.
I have an external api that I am connecting to, to update some data (which is in XML format).
I have the following set of code to update the data
XmlElement ticket = doc["Ticket"]; // doc is xmldoc
foreach (XmlNode node in ticket.GetElementsByTagName("Custom_Field"))
{
if (node.Attributes["display-name"] != null && node.Attributes["display-name"].Value == "Summary")
{
node.InnerText = txtComment.Text; // overwriting my comment for summary
break;
}
}
I am not sure in using HTTPWebRequest and post method. to post these changes back to the uri.
I hope I am clear with my query. Please let me know if I should provide more info. Thanks for any help.