• Raghu 1993
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi All,

     I am Trying to Save Attachement file in GoogleDrive,,,,But I strucked Can Any one help on this ......How to save a file In Google Drive From SalesForce,,
Below Code Shows the Creating The Attachement ,After Creating The Attachement in SalesForce How to Store In Goole Drive

 public PageReference AttachTorecord()
    {
        PageReference pdf= Page.ITReport;
         pdf.getParameters().put('id',orderRecord.id);
         Attachment att = new Attachment();
          att.Body = pdf.getContentAsPDF();
          att.ParentId =orderRecord.id ;
          att.Name = 'ITPDF.pdf';
          insert att;
    return new PageReference('/'+orderRecord.id);
Hi All,

     I am Trying to Save Attachement file in GoogleDrive,,,,But I strucked Can Any one help on this ......How to save a file In Google Drive From SalesForce,,
Below Code Shows the Creating The Attachement ,After Creating The Attachement in SalesForce How to Store In Goole Drive

 public PageReference AttachTorecord()
    {
        PageReference pdf= Page.ITReport;
         pdf.getParameters().put('id',orderRecord.id);
         Attachment att = new Attachment();
          att.Body = pdf.getContentAsPDF();
          att.ParentId =orderRecord.id ;
          att.Name = 'ITPDF.pdf';
          insert att;
    return new PageReference('/'+orderRecord.id);

Hi all,

 

Any ane done the integration of salesforce and google.I want to upload files from salsforce to google drive using apex code.

Please help.

 

Thanks