function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
magandrezmagandrez 

Generic file generation in Salesforce

Hi,

 

I have a requirement to build a text file (txt) in Salesforce and store it attached under a custom object. The file has a certain format (I will need to build it manually using Apex). As far as I know, it cannot be created using PDF creation technique.

 

Do you know of any technique to create custom files other than PDF creation and store them in Salesforce?

 

All ideas are welcome!.

 

Greetings, 

 

MGA.

venkat-Dvenkat-D

Hi,

You can use blob data type for creating general files in the Apex.

Then you can use that blob as attachment for any objects or can place in docuemnts.

 

 

Thanks,

Venkat