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
stunaitestunaite 

HELP - Updating Standard Objects that don't allow DML

Is there some solution to do it from Apex Code? All I found was some "Core calls" to be used from an external aplication :-(

*werewolf**werewolf*

Sorry but what exactly do you mean?  Just about all standard objects allow DML, I can't think of any that don't.  If you can't do it in the API, you can't do it in Apex either.

stunaitestunaite

Lokk at this please,

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dml_non_dml_objects.htm

 

 

and this:

 

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_currencytype.htm

 

so CurrencyType just can be updated by update() which is a "Core call". Don't understand exactly what it means but seems that only external applications can invoke it. Doesn't make much sense...