DUB DYNAMICS CONSULTING
  • Home
  • Dynamics 365
  • The CRM Dev Hub
  • Contact Us
  • Mobile App Development
    • App Development
    • TGIF Fry Guide Support
    • TGIF Fry Guide Merch

Microsoft Dynamics CRM BLOGSPOT

Format Phone Number Field Microsoft Dynamics CRM/CE

6/1/2022

0 Comments

 
A common request we receive is to format phone number fields on Accounts, Contacts, Leads, or any other table that it is needed within CRM/CE. You have a number of options when choosing how to format your phone numbers. If you are on the latest and greatest CRM/CE versions you can use the functionality of Microsoft Flow to create a flow that will accomplish this. I still prefer to use JavaScript that will run on change of the different phone number fields. Below is an example function of how this can be accomplished.
JavaScript Example

    
Another option you may want to consider if you have any integrations that run is to create a plugin that runs PreOperation to format the phone number fields. The advantage to this is it will run when anything is added to CRM/CE where JavaScript relies on a user to be physically typing in the phone number. Disadvantage is the phone number isn't displayed formatted until after you click Save.
C# Example

    
0 Comments



Leave a Reply.

    Categories

    All

    RSS Feed

  • Home
  • Dynamics 365
  • The CRM Dev Hub
  • Contact Us
  • Mobile App Development
    • App Development
    • TGIF Fry Guide Support
    • TGIF Fry Guide Merch