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
0
votes
1answer
27 views

How to get the value of a blob as a string in Apex?

I'm building a Google Drive integration to push files over. I have it working--with one significant problem. When I query VersionData from ContentVersion it return a blob. When I pass my blob in the ...
0
votes
0answers
27 views

Bad Content Type while uploading any file on Google Drive

I am trying to upload any file to google drive using API from salesforce with the help of LWC (lightning web component). I am using multipart upload. But it's giving me error - 13:02:57:607 ...
0
votes
0answers
27 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 ...
0
votes
0answers
29 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? ...
1
vote
0answers
46 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 ...
2
votes
0answers
69 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, ...
0
votes
0answers
307 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 ...
0
votes
0answers
800 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 ...
1
vote
1answer
638 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/...
0
votes
0answers
534 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 ...
2
votes
1answer
328 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.
2
votes
0answers
504 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 ...
1
vote
1answer
252 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, ...
0
votes
1answer
239 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 ...
0
votes
1answer
96 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 ...
3
votes
2answers
234 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 ...
0
votes
0answers
130 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 ...
2
votes
0answers
65 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
1
vote
1answer
3k 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 ...
2
votes
2answers
1k 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 ...
1
vote
1answer
276 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 ...
1
vote
1answer
1k 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. ...
3
votes
1answer
1k 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 ...
0
votes
1answer
80 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 ...
1
vote
1answer
161 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 ...
2
votes
1answer
3k 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....
1
vote
3answers
1k 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 ...
1
vote
2answers
2k 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 ...