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
Vin BVin B 

How can I create a document folder using trigger in salesforce?

I want to create document folders dynamically in trigger.But DML operations on folders is not allowed.How can achieve it?
GauravGargGauravGarg
Hi SFDC,

Salesforce didn't expose this functionaltiy. 

Please create a folder manually via setup menu, and utitlize the same in apex. 

Thanks,
Gaurav