Questions tagged [google-drive]

Google Drive is a free way to keep your files backed up and easy to reach from any phone, tablet, or computer. Start with 15GB of Google storage.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
375 views

Move files from one folder to another using Google Drive API and Apex [closed]

I’m making a callout using named credentials and trying to update the parent Id of the G-Drive file. While doing the callout, getting the below error. "error": { "errors": [ {...
user avatar
  • 294
0 votes
1 answer
233 views

Files Connect - External data Source Google Drive 401 Error: invalid_client The OAuth client was not found

Following the SFDC help instructions on setting up Files Connect for Google Drive Created the Project in the Google Developers Console as per doc Created the Authentication Provider in Salesforce ...
user avatar
  • 61.4k
0 votes
0 answers
154 views

Upload a pdf document to Google docs using APEX

Trying to load pdf document to Google Docs, by using the Google API . so the issue I am facing that the pdf file was uploaded on docs but when we download it and open it shows an error:-Failed to load ...
user avatar
1 vote
0 answers
574 views

Upload file to google drive from Lightning component - Page redirect removing URL

I am trying to achieve functionality to upload a file from Salesforce to Google drive. I have done following 1. Google project credentials (Client key , secrete key) 2. Enabled Google drive API 3. ...
user avatar
  • 29
2 votes
1 answer
242 views

Push notifications from Google drive to Salesforce

I am trying to set up Salesforce to receive Push notifications from Google drive whenever a file has been added by a user. I am following the steps documented here: https://developers.google.com/drive/...
user avatar
  • 175
0 votes
0 answers
138 views

Can I export attachments using Command Line Dataloader and use ANT to get it to FTP site/Google drive

Background: I want to run an after update opportunity trigger that would fetch all the opportunity records as well as attachments and then transfer it to a third party-website. In order to do that, I ...
user avatar
  • 555
0 votes
0 answers
60 views

Send Opportunity records and related files to Google drive

I want to run a trigger that runs on after insert and after update on opportunity fetch the opportunities data and related files and send it to Google drive. Is it possible to do it via apex code? ...
user avatar
  • 555
1 vote
0 answers
129 views

Google Drive resumable upload using Salesforce lightning

I have been trying to upload a large file (maybe greater than 25MB) from Salesforce lightning to Google drive, referencing - https://developers.google.com/drive/api/v3/manage-uploads#resumable ...
user avatar
2 votes
0 answers
251 views

Way to bypass CSP limitations

We store images of our customers in Google Drive. Way we merge data is by Rest API calls. Also, we provide our managers with custom lightning component with embeded links to the images. Unfortunately, ...
user avatar
0 votes
0 answers
932 views

Apex Multipart HttpRequest - With JSON and BLOB

I am trying to consume a Google Drive API to create a file in an ApexController. I was successful in creating a file in the root folder without specifying a name using the code below http h = new ...
user avatar
  • 21
0 votes
0 answers
1k views

Why I am getting " Attempt to use invalid header in request"

I am trying to upload a file by using REST API in salesforce but getting the above error. public static PageReference upload(String at,Blob b,String f,String ft){ String ...
user avatar
1 vote
1 answer
1k views

How to use 'q' parameter for google drive api

I want to pass q parameter in setEndPoint url to get list of all files in the root folder(at the home page). I tried it using the google API(https://developers.google.com/drive/api/v3/reference/files/...
user avatar
0 votes
0 answers
1k views

Why I am getting null value in access token?

I am integrating Google Drive API with salesforce. I have created 2 classes here, one is the controller class for the page and another one is helper class. As soon as my page gets loaded I can see ...
user avatar
2 votes
1 answer
470 views

How to show google drive images in VF Pdf file

I need to show google drive bulk images in VF PDF file. currently am getting broken image. that image url saved in salesforce and remote site settings. how can i get that real image in vf pdf file.
user avatar
  • 347
2 votes
0 answers
693 views

Resumable upload in Google Drive Rest API V3 from Salesforce apex / REST Client

I am trying to create a resumable upload session using drive rest API in Salesforce Apex. As per the documentation the 3 steps needed to be followed are Start a resumable session Save the resumable ...
user avatar
2 votes
1 answer
406 views

How can i use Files Connect to upload an attachment with apex, to Google Drive?

I'm new to this salesforce world and i recently discovered i can synchronize my salesforce instance with a Google Drive. I already have a connection established using Files Connect to my Google Drive, ...
user avatar
0 votes
1 answer
324 views

How to store images in google drive through salesforce

Actually my requirement is want to store bulk of images for these we can use document/notes and attachments due to storage constraint i want to use google drive to store the images from visualforce ...
user avatar
  • 310
0 votes
1 answer
120 views

List has no rows for assignment to SObject When trying to integrate with Google Drive

I created a VF page to display all the files link of a google drive folder. I am storing the folder ID in a custom object. I added this page as a inline VF page on Opportunity object. Whenever I am ...
user avatar
  • 169
3 votes
2 answers
337 views

Backup Salesforce data to a third party

I have a requirement to backup salesforce data to any third party on daily basis and it should be dynamically.I do't want to use any backup service provider. To achieve this I integrated salesforce ...
user avatar
  • 478
0 votes
0 answers
202 views

Save records from Salesforce to Google drive in .csv format

I have a scenario where I have to save my records for five objects namely contact , account , lead , campaign and campaign members as a backup on google drive in a .csv format for each object ...
user avatar
2 votes
0 answers
68 views

can we update the content of file on google drive

https://developers.google.com/drive/v2/reference/files/update#try-it I am able to change everything except content of file
user avatar
1 vote
1 answer
4k views

Integration with google drive in apex [closed]

how to integrate google drive from vfPage. like when we upload any file like image/text/pdf/doc/excel etc. save into google drive.and retrieve from google drive its show there hyperlink , when click ...
user avatar
2 votes
2 answers
3k views

How can i write data in Google Spreadsheet using APEX

I need to write Apex code to connect with Google Drive and create a Spreadsheet and write data into it. I am done with google Drive Authentication but now i am not getting how to create Spreadsheet ...
user avatar
  • 5,210
1 vote
1 answer
379 views

How to write Salesforce data using Apex into Google Spreadshee

I need to write data into Google Spreadsheet using Apex but i am not getting pointers. Can any one help me out on below points - 1) How to authenticate Google Account from Apex code? 2) How to ...
user avatar
  • 5,210
1 vote
1 answer
3k views

Download files from google drive using REST API

Currently I'm working on Google Drive integration with Salesforce. I was able to connect to Google Drive and retrieve a list of file information. now I need to download some files from Google Drive. ...
user avatar
3 votes
1 answer
2k views

Help with Setup of Files Connect for Google Drive

After going to a session at Dreamforce where they demo'd Files Connect for Google Apps, I'm now trying to setup Files Connect in our sandbox so I can try it out myself. I've followed the instructions ...
user avatar
  • 364
0 votes
1 answer
97 views

Using Google Apps in Summer 15

I have had Google Apps configured and working in a Spring 15 org, however once deployed to a Summer 15 org the integration is no longer working. Specifically, the process to add a Google document to a ...
user avatar
1 vote
1 answer
514 views

Make uploading a file required for creation of users and contacts

I am using salesforce to create portal for a school. I am using students and parents as contacts and staff as users. When I am creating students I need to make it manadatory to collect certain ...
user avatar
2 votes
1 answer
4k views

How to create a file inside a folder in google drive?

I am able to create a file in Google drive from salesforce with the below code: Http http = new Http(); HttpRequest req = new HttpRequest(); req.setMethod('POST'); req.setEndpoint('https://www....
user avatar
1 vote
3 answers
2k views

Download files from Google drive

https://developers.google.com/drive/web/manage-downloads In the above link it is given that we have to make a GET request to the downloadUrl (which we get in the response when we upload the file) in ...
user avatar
1 vote
2 answers
3k views

Upload file on google drive

I Used below code after accessing client id and secret key but i am not able to upload file on google drive. Apex code public class GoogleDriveController{ //Fetched from URL private String ...
user avatar