How to upload a document to Chatter from Google Drive

Last week I had a requirement to create a chatter post with an attachment from google drive to a salesforce object. You are more than welcome to post a better solution. Thank You for your time.

Let Say we have a test account

We have to create a chatter post and attach a file from google drive to that account record. So this is how I created my class

and I called it as

About the author

Janaki( - A Software developer with 9+ years of experience in multiple technology projects across web, mobile, and cloud applications with expertise in PHP, C#, MySQL, Web services and open source platforms.

Similar Posts

Cheat Sheets
Understanding Deployments

Leave a reply


Eye Test: * Time limit is exhausted. Please reload CAPTCHA.