Skip to main content
Question

How to get attachment from ServiceTitan job and upload in Google Drive?

  • 21 May 2024
  • 3 replies
  • 30 views

I am trying a build a zap for service titan and google drive integration. 

The Zap should take all the attachement from the job in service titan and upload it to google drive.

I have not been able to successfully do so, I am explaining my method below
 

  1. I am using API Request(Beta) in ServiceTitan 
  2. Actions  GET Method 
    https://api.servicetitan.io/forms/v2/tenant/<tenantID>/jobs/attachment/<attachmentID>
  3. It gives following error
    Raw request failed. Please check your URL. Error: uri requested responds with a redirect, redirect mode is set to error: https://api.servicetitan.io/forms/v2/tenant/1616733733/jobs/at 


    When I do a curl actually I am getting a redirect URL for a azure blob which when hit get the attached file, but as the zap is giving above error I am not able to move forward. 

    Can anyone suggest me, how should I move forward to solve this issue. 
    Are there any other alternative present to query the attachmentfrom service titan and upload to google drive, which will not give above error or will not use redirection.
     

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

3 replies

Userlevel 7
Badge +14

Hi @ajayproinfo 

Can you link to or provide screenshots of the ServiceTitan API endpoint documentation you reference to configure the Zap step?

hi @Troy Tessalone ,

The service titan API endpoint I am using is 

https://api.servicetitan.io/forms/v2/tenant/<tenantID>/jobs/attachment/<attachmentID>

Link to the reference documentation - https://developer.servicetitan.io/api-details/#api=tenant-forms-v2&operation=Jobs_Get

Userlevel 7
Badge +14

@ajayproinfo 

You can try using one of these approaches:

  • Webhook - GET
  • Code
    • To make a GET request