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
Karthik TathiReddyKarthik TathiReddy 

Can we add new custom fields to the objects by just writing apex class...

Hi,

Can we add/create new custom fields to the standard objects by writing apex class... If possible please give me a sample code..........

 

 

 

 

Thanks,

 

 

 

 

-Shiva

 

sfdcfoxsfdcfox

No, it is generally impossible to do so. You would need to be able to construct a valid ZIP file, and perform asynchronous polling to ensure success, both of which are impossible in Apex Code. It is possible to do so, however, with a Java Applet, a Silverlight app, Flash, or even plain JavaScript.

Sridhar BonagiriSridhar Bonagiri

HI,

 

I don't think this possible throught apex class.

 

Regards,

Sridhar Bonagiri