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

Get Attachments From Ticket #377

Closed
FranckJ21 opened this issue Sep 12, 2018 · 7 comments
Closed

Get Attachments From Ticket #377

FranckJ21 opened this issue Sep 12, 2018 · 7 comments

Comments

@FranckJ21
Copy link

Hello

We succeeded in attaching some files to a ticket

Now, we need a get these informations from another application.

  1. First, get the names of the attachments from a ticket to show / propose them

  2. Second, download a specific attachment

How can we do that ?

Best Regards
FranckJ21

@FranckJ21 FranckJ21 changed the title Get Attachments Froml Ticket Get Attachments From Ticket Sep 13, 2018
@FranckJ21
Copy link
Author

Hello,

Can you help us for this problem ?

Best regards
FranckJ21

@mozts2005
Copy link
Member

please have a look at

https://github.com/mozts2005/ZendeskApi_v2/blob/0e45f4d58933b066b0b25f585b0b376c98547107/test/ZendeskApi_v2.Test/AttachmentTests.cs#L33-L67

If you need more info we will need an exmaple of what you are doing.

@FranckJ21
Copy link
Author

Excuse me, i misspoke
Tickets already exist with the attachment

We want, to get back the tickets from ZenDesk with their attachment to show in an application the tickets concerning our customer with the names of the attachments and if need, download from zendesk to the customer's desktop one or several attachments.

Best regards

@mozts2005
Copy link
Member

I am not sure why the example I gave has the steps of getting a ticket and its list of attachments see line 60 and then line 61 shows how to download it.

please give and an example of the data missing for the provided example.

@FranckJ21
Copy link
Author

We would like a form which give all the tickets (not closed) of a particular Customer

The tickets have been created a long time ago so we don't have a instance of IndividualTicketResponse
(no access to t1.Audit.Events.First())

We need these methods (in synchronous mode)

List = GetTicketsNonClosed(long OrganisationId) // Return the list of the ticket for a particular Customer

List = GetAttachmentsFromTicket(long TicketId) // Return the list of the attachments for a particular ticket (no download)

String DownloadAttachmentOnDisk(long AttachmentId, String FolderOnDisk) // return FolderOnDisk+FileName

Best regards

mozts2005 added a commit that referenced this issue Oct 10, 2018
Updated local dev to use only VS code
@mozts2005
Copy link
Member

Please have a look at https://github.com/mozts2005/ZendeskApi_v2/tree/master/src/ZendeskApi_v2.Example.

I have updated it to show you what would be needed for your work.

@FranckJ21
Copy link
Author

Thanks, all work fine !

abc516 pushed a commit to abc516/ZendeskApi_v2 that referenced this issue Oct 30, 2019
Updated local dev to use only VS code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants