Regarding chnaging custom field name in account object

4 views
Skip to first unread message

kranthi

unread,
Jul 29, 2013, 3:31:19 PM7/29/13
to salesforce-p...@googlegroups.com
Hi all,
I have situation
I need to change the names of custom fields in account object.
while I am trying to do it i has dependencies?
The custom field name alreday used in some apex classes?
how to achieve this situation?
 
Thanks,
Kranti

Yashvinder Singh

unread,
Jul 29, 2013, 3:40:16 PM7/29/13
to salesforce-p...@googlegroups.com
I am sure you would not be willing to change just the label keeping the name the way it is. Unfortunately, if you have to change the API name of the field, you will have to make changes in the Apex classes, validations, formulas etc wherever these fields are referenced.


--
You received this message because you are subscribed to the Google Groups "salesforce professionals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salesforce-profess...@googlegroups.com.
To post to this group, send email to salesforce-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/salesforce-professionals.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Anusha

unread,
Jul 29, 2013, 3:44:45 PM7/29/13
to salesforce-p...@googlegroups.com, salesforce-p...@googlegroups.com
Any shortcut for this?


Sent from my iPhone

Anusha

unread,
Jul 29, 2013, 3:45:47 PM7/29/13
to salesforce-p...@googlegroups.com, salesforce-p...@googlegroups.com
I want to change both the names custom field name and the API name too how to achieve it?

Sent from my iPhone

On Jul 29, 2013, at 2:40 PM, Yashvinder Singh <yash...@gmail.com> wrote:

Rohit Aggarwal

unread,
Jul 29, 2013, 3:49:31 PM7/29/13
to salesforce-p...@googlegroups.com, Anusha Pokuri
Best way 
1) create another field of the same type 
2) from eclipse replace all old field with newly created field 
3) change the name of old field and then repeat the  step 2 again
4) Delete the newly created field

Anusha Pokuri

unread,
Jul 29, 2013, 4:29:06 PM7/29/13
to Rohit Aggarwal, salesforce-p...@googlegroups.com
they are not allowing to do like this.
they want to rename the field names and also the api names in both account object nad  in
apex classes too..
Any idea?

--
Thanks & Regards,
Anusha Pokuri.

Rohit Aggarwal

unread,
Jul 29, 2013, 4:41:07 PM7/29/13
to Anusha Pokuri, salesforce-p...@googlegroups.com
Then you just need to comment the code wherever field is referenced (which is really painful ) and make the changes

Anusha Pokuri

unread,
Jul 29, 2013, 5:01:09 PM7/29/13
to Rohit Aggarwal, salesforce-p...@googlegroups.com
Is it causes any errors from moving one sandbox to test sandbox?

Rohit Aggarwal

unread,
Jul 29, 2013, 5:02:03 PM7/29/13
to Anusha Pokuri, salesforce-p...@googlegroups.com
Moving with commented code ?
Reply all
Reply to author
Forward
0 new messages