Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Changing Data Field from Integer to String

(0) ShareShare
ReportReport
Posted on by 60

Hi BC Gurus,

We have a customized field we would like to change from Integer to String. It looks like the field is already populated with a lot of data. Is there any risk to changing a field from Integer to String? We worry that we will lose data if we make the change. 

What would be the best way to make this change? 

Thanks!

  • Suggested answer
    Bilal Haider Profile Picture
    Bilal Haider 47 on at
    RE: Changing Data Field from Integer to String

    Hi,

    Data loss occurs if a field converts from a higher data type to a lower data type. In your case its opposite. So data will not be lost.

    Just make sure that the length of string should be enough. Like if you have highest number as 1234567890 then length of string should be more than 10.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans