You need to sign in to do that
Don't have an account?

How can I deploy custom fields in Standard objects from Sandbox to Production?
Hi,
I have added about 100 custom fields in the standard Account object in sandbox . How can we deploy these 100 fields to Production? I tried from eclipse IDE(force.com IDE) but did not find the Account object XML to deploy. Currently the only way I can think of is to manually create these 100 custom fields in production.
Appreciate all help in this.
Regards,
Ambili
Ambili
You can include standard objects in your Force.com IDE projects in either of two ways:
1. Add the custom fields on a standard object to a package. This will create a .object file for the standard obejct, containing only the custom fields on that standard object that are in the package, e.g. src/MyPackageName/objects/Account.object
2. Add the name of the fields or the object to src/unpackaged/package.xml. Warning: Be cautious not to inadvertantly damage your production Field-Level Security settings. See note below.
- Option A. Add a CustomField type section:
<types>
<members>Account.MyCustomFieldName1__c</members>
<members>Account.MyCustomFieldName2__c</members>
<name>CustomField</name>
</types>
- Option B. Add the standard object name to the CustomObject type section:
<types>
<members>*</members>
<members>Account</members>
<name>CustomObject</name>
</types>
NOTE: Adding a standard object to the CustomObject section will cause your .profile files to contain Field-Level Security information for all standard and custom fields on the standard object, the next time you refresh your profiles folder from the server. If you deploy such a .profile file to your production org, you will overwrite these Field-Level Security settings.
This should let you do what you need, just be careful about FLS!
Jon
All Answers
You can include standard objects in your Force.com IDE projects in either of two ways:
1. Add the custom fields on a standard object to a package. This will create a .object file for the standard obejct, containing only the custom fields on that standard object that are in the package, e.g. src/MyPackageName/objects/Account.object
2. Add the name of the fields or the object to src/unpackaged/package.xml. Warning: Be cautious not to inadvertantly damage your production Field-Level Security settings. See note below.
- Option A. Add a CustomField type section:
<types>
<members>Account.MyCustomFieldName1__c</members>
<members>Account.MyCustomFieldName2__c</members>
<name>CustomField</name>
</types>
- Option B. Add the standard object name to the CustomObject type section:
<types>
<members>*</members>
<members>Account</members>
<name>CustomObject</name>
</types>
NOTE: Adding a standard object to the CustomObject section will cause your .profile files to contain Field-Level Security information for all standard and custom fields on the standard object, the next time you refresh your profiles folder from the server. If you deploy such a .profile file to your production org, you will overwrite these Field-Level Security settings.
This should let you do what you need, just be careful about FLS!
Jon
if its not being cheeky; is there any chance you could forward a screen grab showing how your amended package.xml looks once you have inserted a few custom fields in standard objects - Im trying to understand how mass deploy them in one go.
Many thanks
my email is michaelfcunningham@hotmail.com
If you just want to deploy the custom fields but not the Profile security settings (you can configure that later in your production organization), omit the <types>...</types> section for Profile when you retrieve.