You need to sign in to do that
Don't have an account?
Paul Tangusso
Replacing Formula Field with Number Field
I need to replace a Formula (type=Number) field with a straight NUMBER field. The Formula field is referenced in a handful of reports and in one Apex class. Trying to understand the best way (steps) to accomplish this considering the restrictions associated with changing field types.
Do I attempt to change the field type or create a new field? Any suggestions? Thank you.
Do I attempt to change the field type or create a new field? Any suggestions? Thank you.
Load the values to new fields based on record id's using dataloader and you should be good to delete old field.
Please mark as Best Answer if above information was helpful so that it can help others in the future.
Thanks,
All Answers
You can try to change the data type instead of creating new field.
First, try to remove field dependencies from existing components i.e reports and apex class then make attempt to change field data type.
Also would suggest to take backup of existing field data using dataloader before you make any changes and reload once you change value.
If not create new field and load existing values from fromula to number field and use them in existing reports and class.
Hope this helps...
Thanks
Load the values to new fields based on record id's using dataloader and you should be good to delete old field.
Please mark as Best Answer if above information was helpful so that it can help others in the future.
Thanks,