Your UX is waiting ...interact, engage, explore in Las Vegas at CloudWorld 2023

Learn more
delete incident attachments with SOAP Api — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

delete incident attachments with SOAP Api

Accepted answer
29
Views
3
Comments
edited Jun 8, 2022 12:02PM in General Technical Discussions 3 comments

Content

Hello 

I would like to delete incident file attachment through SOAP Api.

I tried this code, but I receive the error "The content type text/html; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly."

public void deleteIncidentAttachments(long incidentID, FileAttachmentIncident[] fattachs)
{
Incident incident = new Incident();
incident.ID = new ID(); ;
incident.ID.id = incidentID;  // input
incident.ID.idSpecified = true;
 
incident.FileAttachments = fattachs;  // input, retrieved before
foreach (FileAttachmentIncident x in incident.FileAttachments)
{
   x.action = SOAP.ActionEnum

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!