SalesforceLabs / FileExplorer

With the Lightning File Explorer, you can create and then view a hierarchy of your files associated with a record. The files are nested within a familiar tree structure which we are all used to.
BSD 3-Clause "New" or "Revised" License
36 stars 47 forks source link

How to create File Explorer File for File not uploaded through the component #3

Open SgtSkyfall opened 3 years ago

SgtSkyfall commented 3 years ago

Hey,

I would like to use the component as it has multiple features my stakeholders have asked about.

I have a flow from which I call apex to create a PDF from a visualforce page and would like this file to already be in a folder, how do I get the Folder Id/The needed values and what is required there?

Thank you :)

paull10au commented 2 years ago

Hi @SgtSkyfall

The FileExplorerFile and FileExplorerFolderIds records are created in a trigger when a user who is assigned the File Explorer Permission Set saves a file (ContentDocument)

This is all you need for the file to appear in the File Explorer.

thanks!