You need to sign in to do that
Don't have an account?
ssoftware
adding custom field to a standard sobject via Apex
Hi All,
Is it possible to add a custom field to a standard SObject (Account etc..) via Apex? If it is, can someone point me in the right direction or show me some sample code?
Thanks in advance!
If you are talking about defining a new field on the object, then I'm afraid you can't do that - you'd need to use the metadata API which isn't available in Apex.
All Answers
If you are talking about defining a new field on the object, then I'm afraid you can't do that - you'd need to use the metadata API which isn't available in Apex.
Thanks Bob. I will look into the metadata API.