Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Answered

Quick Find phone number search

Posted on by Microsoft Employee

I'm having trouble finding a fix for what I'm trying to accomplish. I have added javascript to the phone number field to format the phone number to (xxx) xxx-xxxx but when users use quick find I want them to be able to type xxxxxxxxxx and have the lead come up. I don't want to use wildcards because it would be the same as typing the parentheses and dashes. Any suggestions.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Quick Find phone number search

    Hello Brad,

    A CTI solution such as Tenfold not only will allow integration between Asterisk and your CRM but also allow users to have features like call pop up which shows the details of the customer regardless if it's an incoming or outgoing call as long as there's a match from your CRM record; and a click to dial features which turns any found phone numbers (web, spreadsheets, etc) and make them click to dial. They support MS Dynamics integration. You can check out the integrations list for Tenfold here www.tenfold.com/.../dynamics

  • Verified answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Quick Find phone number search

    Hi Brad,

    Please try the following JS code.

    var mobilephone = Xrm.Page.getAttribute("mobilephone").getValue();
    mobilephone = mobilephone.replace(/\D+/g, "");
    Xrm.Page.getAttribute("new_primaryphonesearch").setValue(mobilephone);

    Hope this helps.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Quick Find phone number search

    What would the JS be to copy from text field "mobilephone" to "new_primaryphonesearch" ?

    I tried a workflow to copy the field but it happens after the the format changes. Thank you for your help.

  • Suggested answer
    Mihir@CRM Profile Picture
    Mihir@CRM 4,036 on at
    RE: Quick Find phone number search

    Create a new text only field.

    Write a JS to copy the data to the text only field without formatting.

    Or

    a workflow to copy the data before it does formatting from the original phone field to new text field.

    Mihir

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Quick Find phone number search

    I tried copying the field but it copies in the (xxx) xxx-xxxx format and can't get it revert back to xxxxxxxxxx even with javascript. How would you suggest I copy the field?

  • Suggested answer
    Mihir@CRM Profile Picture
    Mihir@CRM 4,036 on at
    RE: Quick Find phone number search

    Hi,

    You can create another field which will copy and store the Phone # in the format xxxxxxxxxx and enable quick find on it.

    So when a user searches the record will show.

    Mihir

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans