We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.

Write/Upload PDF files to Google Drive

Laszlo_Szabo
5 - Atom

Hi Team,

 

Is it possible to Write/Upload PDF files to Google Drive with a workflow ran on Alteryx Server? I see that the Google Drive Output tool only supports 4 file formats and PDF is not one of them. Is there any way around it?

 

Thanks

 

Laci

1 REPLY 1
apathetichell
20 - Arcturus

It needs to be on Server? any chance you can get a GCP service account key and share the drive with that service account identity? so usually this would flow through three legged oauth with a redirect and user credentials --- Alteryx doesn't support that on Server. 

 

Basically your three choices are:

1) service account key/sharing your gdrive with a service account.

2) trigger your Alteryx workflow via api a web app/other site which has the oauth pass through. That site 1) needs to be trusted and 2) needs access to your Alteryx server via api. I'd strongly recommend encrypting them even though they are short term... You'd then run python on Server to move the file to the google drive using the user oauth credential.

3) move to a gcs storage bucket via cli ---> set up a cloud run function to move them to your gdrive. You'd need to configure your server to have access to gcs via cli (service account role) ---> and you'd need your cloud run invoker role used for your cloud run function to have access to your google drive. No static credentials would really be needed here.