We've to change data type of a pick list field to multi select.
But this field is already being used in multiple classes. I'm just curious about the impact during production deployment as changing data type can't be done without commenting out code, where field is referenced?
Could we just change the data type and use the field in our change set and Salesforce deployment engine will automatically handle everything ?
or
We've to following these steps
1 'comment out'
the code(Classes etc) where field is referenced(in Sanbox)
2 Deploy Code in production ,
3 change the data type in production
4.Deploy the same code(cloned change set of earlier one) again after 'uncommenting'
code ?