Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Importing phone numbers removes leading 0

(0) ShareShare
ReportReport
Posted on by 50

Hi,

I am trying to import UK phone numbers (which have a leading 0).

The phone field they are importing to is set to be text (telephone) and the file they are importing from is a CSV, so they definitely have the leading 0 present.

It appears however during the import the 0 is removed by Dynamics.

Any way I can change this behaviour?

  • SBeal Profile Picture
    SBeal 50 on at
    RE: Importing phone numbers removes leading 0

    Hi Leah,

    That's useful to know, thanks! The issue is we are importing the file as a csv (as importing as an xslx has previously been problematic)

    Other staff are doing this import on a daily basis, and the data is processed in a Flow prior to import (the Flow definitely doesn't strip out the leading zeros). So ideally I want to make the system automated, rather than having to import a CSV into excel, then re save it as a CSV to then import into Dynamics (which I suspect wouldn't work as csv doesn't maintain the excel formatting).

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Importing phone numbers removes leading 0

    Hi SBeal,

    Yes, I got this.

    What I mean is that you can save the CSV file as excel, keep the leading 0 in the excel as the above way, and then import this excel to the dynamics 365.

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • SBeal Profile Picture
    SBeal 50 on at
    RE: Importing phone numbers removes leading 0

    Hi Leah,

    Thanks for your help. I don't think it is this - I have taken the CSV file I want to import into Dynamics, viewed it in a text editor (i.e. not Excel as I'm aware Excel strips out leading zeros) where it correctly displays the leading zeros.

    It appears to me the zero removal is happening when Dynamics transforms the data.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Importing phone numbers removes leading 0

    Hi SBeal,

    It seems a problem related with cells format. You can try to format cells with the General or Text format.

    Here are steps.

    1.Open one new excel, move to Data tab and click ‘From Text’ button to import CSV file.

    pastedimage1616465085884v1.png

    2.Text Import wizard.

    pastedimage1616465306556v3.png

    3.Import dialog.

    pastedimage1616465354642v4.png

    4.Result.

    pastedimage1616465385306v5.png

    And you can refer the video,which can provide more detailed steps.

    How to Keep Leading Zeros in Excel CSV Import - YouTube

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans