C# code to create ticket with attachment and custom fields

  • 16 August 2017
  • 4 replies
  • 400 views


Can anyone provide me code C# code to create ticket with attachment and custom fields. I an able to create ticket with attachment but when try to send custom fields,API  responds bad request.


So please help me asap to pass value in custom fields with attachment.



This topic has been closed for comments

4 replies

Userlevel 4
Badge +12

Hi Pallavi,




Please check this link and see if that helps in creating the C#code to create tickets with custom fields + attachments.




Cheers!



Any example for create tickets with custom fields + attachments?


I mean REAL create tickets with custom fields + attachments with multipart/form-data


Did anyone get a solution for this?

Userlevel 5
Badge +3

Hi Pallavi / Andrew,




I've attached a sample C# call that will help you 'Create a ticket with Attachments and Custom fields'.




I hope it helps :) 




Cheers!