Expand my Community achievements bar.

SOLVED

How to export a file to a Google Drive folder ?

Avatar

Level 2

Hi All,

 

Can someone explain me please how to explain me how to transfer a file from a workflow when it runs to a Google Drive folder via a file transfer or a web download activity ?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @Terry25 ,

We cannot use the Google drive as a SFTP location so the normal filer transfer activity will not work.
You will have to first use the file extraction activity to create a file on your server.

Then you will have to use the Google Drive API to push the file dynamically by writing the javascript code.
You can refer to the details documentation here on how to use the Google Drive API

 

Let me know if that helps


     Manoj
     Find me on LinkedIn

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hello @Terry25 ,

We cannot use the Google drive as a SFTP location so the normal filer transfer activity will not work.
You will have to first use the file extraction activity to create a file on your server.

Then you will have to use the Google Drive API to push the file dynamically by writing the javascript code.
You can refer to the details documentation here on how to use the Google Drive API

 

Let me know if that helps


     Manoj
     Find me on LinkedIn

Avatar

Level 2

Hi Manojk,

Thanks for your answer.

 

sorry, I’m not very familiar with JS. Would you mind please give me more explanation?

when you say I need to push the file by writing a JS code, do you mean in the WF where I want to export data ?

would you mind to give me an example ?

thanks