+ Start a Discussion
Aman wadhwa 18Aman wadhwa 18 

Auto upload attachments to google drive

Hi i have a requirement that if i upload any attachment to account it will automatically be uploaded to my google drive. Can anyone help me achieving this.
I had connected my google drive to salesforce org via Auth. provider and Named Credential.
dont know how to do next help.
Thanks in advance.
AbhishekAbhishek (Salesforce Developers) 
Aman,

Your query is answered here,

https://na93.salesforce.com/chatteranswers/ChatterAnswersQuestionSingleItem.apexp?id=9062I000000IVJN

https://trailblazers.salesforce.com/answers?id=9063A000000l8okQAA


Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.
sachinarorasfsachinarorasf
Hi Aman,

Go through the below link for google drive integration. And before send your attachment save it in the Account object also in the UploadFile method.

https://blog.webnersolutions.com/salesforce-google-drive-integration-upload-files-from-salesforce-to-google-drive/

I hope you find the above solution helpful. If it does, please mark it as Best Answer to help others too.

Thanks and Regards,
Sachin Arora
www.sachinsf.com
Aman wadhwa 18Aman wadhwa 18
Hi, @sachin I had integrated google drive using names credential and Auth. provider,  my requirement is when I upload a file/attachment to any account that attachment will automatically be uploaded to my drive is it possible if yes please help.
Thank you