+ Start a Discussion

Compile error: DML not allowed on StaticResource

Is there anybody know how to upload a static resource using web service API or something?


I want to dynamically create a static resource using API, but the StaticResource does not support DML Operation. Is there any other way to do that? say Metadata API?



Best Answer chosen by Admin (Salesforce Developers) 

Yes, you can create a StaticResource using the Metadata API, take a look.


Hope that helps,