I have a managed solution deployed in customer place, we had a "Single Line text" field in a custom entity, now we want to change the field type to "Multi line text" due to character limit.
how can we achieve this, without effect on schema
Please help
Hi,
There is a tool in Xrm Toolbox to update the type of an attribute.
Try that:
Hope this helps.
Create a new singleline text filed and copy data from your existing filed to new filed.
Create a on demand workflow or console app,or xrm toolbox bulk update tool to update all records.
now delete the old filed and create a multi line text filed. You can use the same schema name.
There will not be any other impacts on existing customization.
Now copy the data from your dummy filed to the text field.
Deployment
1) Create a new solution to add the dummy filed to the entity and do a managed deployment to the solution.
2) Perform the Data copy from the existing filed to the dummy filed
3) Create a new clone of the solution in the develop environment and remove the filed dependency from all forms, views etc. If the filed is existing in multiple solutions then it must removed from all solutions. Remove the filed from all cloned solutions
4) new deploy all solutions to the target environment as managed
5) Uninstall all old dependent solutions
6) This will remove the filed from the target environment
7) Now Increase the version number of the solution in development environment and create a new filed as multi line text and restore all removed customization
8) deploy the solution to the target environment
9) perform a data copy from dummy to the new filed
10) Uninstall the dummy filed solution from the target environment
Hi,
You cannot do this as Dynamics CRM does not allow to change the field datatype after field creation.
Yes, there is no way to change the data type of a field once it is created.
Only solution is to create a new field.
Hi,
You cannot change the type of field after its creation.there is only one way is to create new field.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156