+ Start a Discussion
Sales Force FRMSales Force FRM 

Is it possible to create a file and write in to that file using apex code?

Hi Folks,
                Is it possible to create a file and write in to that file using apex code?

---Rajeshwar.
dallas_sfdallas_sf

No, you can't do that - see the section in Apex documentation on Apex limitation

You can look into creating a custom object that will store the state and retrieve it (instead of a file)

 

 

GoForceGoGoForceGo
You can create document object (stored in document tab) or attachment object (stored as attached file to an object) in salesforce.

You can write strings to these files.