Skip to main content
Best answer

How do I create new Zendesk ticket for new image added to Google Drive folder?

  • August 20, 2024
  • 7 replies
  • 49 views

I’d like to be able to create a new ticket request in Zendesk when a new image is added to a folder on Google Drive.

Ideally, I could add a folder of new images, and for each image in the folder, a new ticket is made. Each image would then be added as an attachment file to its respective ticket, and the file/folder names would be used to fill out the ticket data.

Is there a way to do this?

I have tried using Google Docs API and retrieve files, but am having difficulty getting started. 

Best answer by SamB

Or if I’m misunderstanding that and you’d like a separate ticket added for each image you’d replace the Attach File to Ticket with the Create Ticket action instead:
cb5e58010f99391ff03a43f2497ae00c.png

Which would create a new ticket for each file and attach the file to it.

Let me know if you get stuck at all, happy to assist further! 🙂

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

7 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • August 20, 2024

Hi @josie01 

Try this Zap trigger: GDrive - New File in Folder

 


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • August 20, 2024

Welcome to the Community, @josie01! 🎉

Just wanted to note that the New File in Folder (Google Drive) trigger that would run the Zap whenever a new image is added to a specific folder.

If you’re wanting a Zap to trigger for each file that’s added to a new folder that’s being added as well, then it might be better to use Google Drive’s New File trigger as that would trigger for files added to any folder:

91fd64cc3e06fe8e3c083910742831f9.png

From there you could use Zendesk’s Create Ticket action to create the ticket. It also has the ability attach a file to the ticket it creates: 
95d84c45b684cf49648efbf37da3d801.png

We’ve got a Zap Template for this workflow here you can use to help speed up the set up of this workflow. 🙂

Hope that helps to get you started. If you run into any issues or have further questions along the way just let us know!


  • Author
  • Beginner
  • August 21, 2024

Thanks everyone!

New File in Folder might be the way to go to get it to run for each individual image.

I was playing with the idea of batch uploading for convenience, i.e. have all the new images in one folder and use New Folder as the trigger.

But I would need a way to retrieve a list of the images. 

Basically, the desired behaviour is:

  1. When New Folder is added to Folder,
  2. Retrieve list of files in New Folder
  3. For every file in New Folder, create a ticket in Zendesk and attach said file

Cheers for all the help so far.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • August 21, 2024

Ah, I see now @josie01. Thanks for clarifying that!

In that case, perhaps you’d want to use the Retrieve Files from Google Drive action to pull a list of the files with the folder that was just created. I just tested with the following set up:
e65227b45c0c82493e19d1ca16aac670.png

And it was able to pull a list of all the files within a specific folder
056f5320f703b7f8d0f85267c383b6ff.png

Depending on how many images and their size, you may need to add a delay action ahead of the Retrieve Files from Google Drive action to ensure that the images have had enough time to be uploaded to the folder before the Zap tries to find them.

Then you’d have a Create Ticket (Zendesk) action to create the ticket. Since the Retrieve Files from Google Drive action wouldn’t output links to each file that Zendesk could use to attach them then you’d likely need to use a Looping action to run through each file that was retrieved and have a Find a File (Google Drive) action within the loop to find the file. Followed by a Attach File to Ticket (Zendesk) action to add it.

The overall setup I’m describing would look like this:
78d55ccde4c9cf86eb76873ecbb96405.png

Does that sound like it could work for your needs here? 


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • Answer
  • August 21, 2024

Or if I’m misunderstanding that and you’d like a separate ticket added for each image you’d replace the Attach File to Ticket with the Create Ticket action instead:
cb5e58010f99391ff03a43f2497ae00c.png

Which would create a new ticket for each file and attach the file to it.

Let me know if you get stuck at all, happy to assist further! 🙂


  • Author
  • Beginner
  • August 28, 2024

Thank you @SamB! That did the trick.

I didn’t quite have the custom query right for retrieve files. 

I’ve got my Zap up and running. Thanks for all the help!


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • August 28, 2024

Yay! That’s fantastic news, @josie01! 😁🎉

Please do reach back out to the Community again if we can help with anything further. Until then, happy Zapping! ⚡