Public File sharing folder when in Sugar Cloud -- onDemand

Hi 

PURPOSE:

  • I have a requirement to generate a custom PDF inside SugarCRM using TCPDF and a custom template. 
  • We are then wanting this to be able to email out a link for the Client to download with no auth.

USE:

  • A cron process runs once a day and generates the PDF and deletes older pdfs, greater than 3months old
  • This then saves the file to a public accessible folder
  • the URL t the file is stored n sugar against the said record
  • A transactional email is triggered by a process
  • The client clicks on the link to PDF in email and reads/prints the pdf

Cheers

Mike

  • You can store the PDF in a cache folder. You can use the function 

    create_cache_directory()

    This will create your directory and return to you the name of the directory

    $cacheDir = create_cache_directory("ProjectSummary/");