Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an attachment to a ticket #17

Open
marinakh opened this issue Sep 17, 2015 · 3 comments
Open

Add an attachment to a ticket #17

marinakh opened this issue Sep 17, 2015 · 3 comments

Comments

@marinakh
Copy link

Hi,
I use this example for adding an attachment to a ticket: https://github.com/freshdesk/fresh-samples/blob/master/c-sharp_samples/AddNoteWithAttachment.cs, changed only the api_key and attachment's path,

but I always get an error: "The remote server returned an error: (500) Internal Server Error."
I can't figure out what is the problem... Does this code works?
I successfully added a note to existing ticket using the sample, but stuck on adding an attachment.

Best Regards,
Marina

@RashmiRam
Copy link
Contributor

You could refer this sample which is more specific to your needs.
https://github.com/freshdesk/fresh-samples/blob/master/c-sharp_samples/CreateTicketWithAttachment.cs

@marinakh
Copy link
Author

I tried this one also, only changed the api key, attachment and the url (referring to ticket number).
Still getting this error.

@RashmiRam
Copy link
Contributor

Can you raise a ticket regarding this to support.freshdesk.com attaching your script? Your issues will be addressed appropriately there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants