You need to sign in to do that
Don't have an account?
chrisbellamy
Creating a new field on an object with Apex code
Is there a way to create a new field on an object with Apex code? I'm pretty sure it can be done with the Metadata API, but I wondered if there's a way directly from within Apex.
Hi Chris,
no, unfortunately this is not possible currently with Apex. Apex allows now for describe calls which are only for reading fields and objects' info but not for writing.