freshworks / fresh-samples

Samples of code created by freshdesk
184 stars 181 forks source link

Viewing and Updating a ticket with custom fields #70

Open Sil3ntGam3r opened 3 years ago

Sil3ntGam3r commented 3 years ago

Is there a way to view and update a ticket with custom fields.

I used the C# freshdesk samples to view a specific ticket in my custom app, but I can't use custom fields

Is there a way to do this? Please help me with example code

Thank you

MZurmuehlen89 commented 3 years ago

For the case the question isn't solved yet via another way: The support of Freshdesk gave me the following solution (from code-sample create with attachment):

// Description:
writeBoundaryBytes(rs, boundary, false);
writeContentDispositionFormDataHeader(rs, "custom_fields[cf_fieldname]");
writeString(rs, "value of custom_field");
writeCRLF(rs);

worked fine for me