You need to sign in to do that
Don't have an account?
Ashritha S
automation of creating a custom field in salesforce
Hi ,
I have a json file which has the custom field details like field name, field type , field values etc.. How do I write a code to create a custom field in salesforce from this external json file.
I have a json file which has the custom field details like field name, field type , field values etc.. How do I write a code to create a custom field in salesforce from this external json file.
Yes, You can create custom object fields using Apex code.
see the below example,
create a field using apex
Try this code,
But I am facing an issue while creating custom fields for case as ' limit exceeded ' while using the metadata service. Initially I could create few fields for case object both using the GUI of salesforce and also using metadata service . Now I am not able to creating custom fields for case from both the options. Even when I am using the GUI of salesforce to create a custom field for case its throwing an error as ' No clean data columns available for custom fields.'