Send PDF Files of a doctype to google drive

I was wondering if there is a way where a PDF file of a doctype is directly saved in a Google Drive folder. For example, I want that whenever a sales invoice doc is submitted, the pdf of that file is directly saved in the folder named after a customer.
I feel it maybe possible to use a webhook or a custom script but am not sure about the steps involved in such automation.

1 Like