Need to have Phone Number field as just numbers with no formatting.

We have a web service that is passed the work phone field from the contact object. That WS uses the phone number to auto-dial the customer's number for our sales reps.
My issue is that the WS expects to just see the area code and the phone number as digits as 1235554444. It has been working fine for over a year and recently been failing as now the numbers come in with a "+" sign.
The format seems to change depending on the time of day I look at the fields and is random for each user. The company profile is set to USA as the default and so are the user's locale settings.
How do I make the "+" go away?
I have tried various settings and couldn't seem to find one that didn't give me the formatting. I've also tried to copy the work phone field to a hidden field and using WF to strip out the "+" but there seems to be no way to do a REPLACE() function in a WF rule.
Any ideas?

So after spending enough time with this I was able to find a way around the issue. Ultimately I needed a phone number format that was fixed and would not mask the data per the user's locale settings. It also needed to be just area code and phone number shown as 1112223333.
On the contact object, a new field was created as a Short Text. Then a WorkFlow as created that copies over the value from the WorkPhone field into this unformatted number so that it can be passed to our Web Service.
It took a while for me to figure this out since if you just use the WorkPhone variable you get all the masking based on locale. I didn't have the functions available to me in the WorkFlow to just strip spaces and "+" or "( )" so I needed it to be as close as I coudl to just a basic phone number. By using the FieldValue() function it seemed to take a number like 1 (555) 444-4444 and return 1 555 4444444. This works no matter if it was +1 555 4444444 or +41 555 4444444 so I could then use some pattern logic.
This is what I used to copy that data over to my temp/work field which is now passed to our click-to-dial function.
Mid(FieldValue('<WorkPhone>'), InStr(FieldValue('<WorkPhone>'),' ') + 1,3) + Right(FieldValue('<WorkPhone>'),7)

Similar Messages

  • Address Book/iSync - email addresses moving to phone number fields

    I'm not sure what is causing this, but I'm noticing that email addresses in my cards are moving to phone number fields. I originally thought this had something to do with cards that had no phone number in them, only an email address, but now I"m realizing that's not the case.
    I fixes all cards last night and just a minute ago, when I was in Address Book I noticed some or all of the email addresses had moved again. I reverted to my backup from last night and it fixed things, but I'm wondering what's going to cause those addresses to move again.
    I do use iSync to sync my AB contacts to my Motorola phone (I think I have it set up where it's one way, computer to phone) and I have Entourage that's using my AB contacts to populate its address book.
    Any thoughts about what in my environment is causing this?
    -John

    Thank you for the suggestion. I did this, but noticed that some cards were still messed up. So I reverted back to a clean copy of my address book from last night. Then I went to iSync and synchronized with my Motorola phone. That's when iSync says that it's going to modify over 5% of my contacts in AB (122) at which point I said okay. Problem appears to be that the cards it modifies is random.
    Now to make matters worse, it appears that if I repeat this process over and over (revert, iSync, look through cards), there is no pattern to which cards are changing. I don't even know how to troubleshoot this. I'd love make iSync go one way - computer to phone - so that the phone can never write information to the computer. Is that possible?
    I'm sure this needs to go to a different section...
    -John

  • Need a REAL phone number to schedule repairs

    I spent an hour on the phone yesterday, trying to REQUEST that someone come look at my multifunction machine (we're a HUGE international business, just like HP).
    After being transferred to at least 5 different departments because the person at HP:
    1) from the model number, couldn't figure out what kind of machine I have.....???????
    2)  couldn't understand my serial number....they kept telling me it was not a valid serial number, even though I was reading it off the machine configuration page that I printed from the printer's administration menu....???  After repeating the serial number twice, I was passed immediately from a phone operator to a manager.
    2)  they didn't know the appropriate department to transfer my call to.....???
    FINALLY someone was (with random 10-minute hold intervals) able to enter a ticket into the system and issue me a case number.  That took AN H-O-U-R.  Then I had to wait till THE NEXT DAY for someone else to call and tell me that someone would be at my office within a 2-hour interval to repair the machine.
    When he walked in the office, he was aware of only ONE of the issues I'd called HP about...even though I repeated BOTH issues to the ~4-5 people I talked to while they transferred me from department to department.  (A constantly-jamming tray and a loose network port......on a 5-month old machine that's used by ~30 people.)  Unfortunately, it wasn't my regular repair guy (yeah, this isn't the first repair we've needed), otherwise I would have talked to HIM about my frustrations.
    I need a REAL phone number where I can call this repair-scheduling-center DIRECTLY.  WHEN the next problem with my machine(s) happens, I do NOT want to have to spend another hour on the phone, trying to schedule repairs.
    Can someone provide me with this direct line?
    Thanks in advance.
    There was no appropriate board to post this on, so I apologize for posting it on the wrong one.

    I just noticed that the repairman has been on the phone for 30 mins about our repairs.....most of it has been on hold.

  • Phone number field

    I am trying to create a phone number field that will automatically create the dashes as they are typing in the numbers. For example: i type 222 and a dash follows after the last 2 automatically. I know about the regular expression validation you can set, but it is a little complicated for the end user.

    Add the JavaScript to the HTML Header field of the Page definition.
    Then add the following to the HTML Form Element Attributes of your field:
    onclick="javascript:getIt(this)"However, be aware that the Javascript function in the example expects a particular document structure - it is not written generically so you will have to spend some time updating the example OR find another one.

  • Deactivate imessage from phone number. I just got a droid and got rid of ipone

    i need to know how to deactivate imessage from my phone number. I just recently got a droid, after many issues with apple.......

    Search can be your friend: iOS: Deactivating iMessage

  • How to prevent users from entering '+' or '0' in front of country code in the phone number field?

    Requirement:
    How can I prevent guest users from entering '+' sign or '0' in front of country-code in the visitor phone number field during self registration?
    Few SMS service providers are not looking for '+' sign or '0' or '00' in front of the international phone numbers to trigger the sms. Providing these values in front of country code during self-registration may fail to deliver the sms to recipient.
    Solution:
    Using a simple regular expression, you can validate the entered phone number during the guest registration. 
    The below regular expression will help you to validate the phone number and allows to register only  when the phone number is not staring with '+' or '0'. 
    ^[1-9][0-9](\d{7}|\d{8}|\d{9}|\d{10}|\d{11}|\d{12})$
    It also performs the below validations.
    only numbers are allowed.
    first digit of the entered phone number should be 1 to 9, so '+' or '0' is not allowed. 
    numbers from 0 to 9 are allowed from the second digit.
    also validates phone number length, the length of the phone number should be 9 to 14.
    Configuration:
    To add the above regex in the visitor_phone number filed, please navigate to ClearPass Guest >> Configuration >> (Pages)Guest Self-Registration >> select the self-registration page and go to Edit >> Register Page >> Form >>  select the filed visitor_phone and set the Validator to " ISRegexMatch" and enter the above regex in the Validator Argument filed as shown below.
    Note:  Edit the Validation Error as per your requirement.
    Verification
    Adding the given regex will validate the phone number and prevent the guest user from registering the phone number starts with '+' or '0'.
    Please find below the sample outputs for your reference.
    Result when phone number starts with '+' or '0'.
    Successful registration.

    Is this a Mac Preview issue?

  • HT4623 Have just updated to the latest version of ios6 on my iPhone 4S and now I can't see the apps that need updating. Is showing 8 but just left with blank screen.

    Have just updated to the latest version of ios6 on my iPhone 4Sand now I can't see the apps that need updating. Is showing 8 but  just left with blank screen- how do I fix this?

    Look for the little Flag button in the lower left corner.

  • Stupid question,, when installing acrobat, they ask for serial number,, i wrote that without the dashes between numbers,, do I need to have dashes between sets of 4 numbers ?

    stupid question,, when installing acrobat, they ask for serial number,, i wrote that without the dashes between numbers,, do I need to have dashes between sets of 4 numbers ?

    Yes Example:-
    1234-5678-1234-5678-1234-5678

  • Why won't my ipad send a simple txt message to a phone number that is not listed with imessage. It workls fine from my iphone. Same carrier.

    Why won't my ipad send a simple txt message to a phone number that is not listed with imessage. It works fine from my iphone. Same carrier.

    You can read why here:
    about messages
    http://support.apple.com/kb/HT3529
    Troubleshooting messages
    http://support.apple.com/kb/TS2755

  • E51 Outlook phone number Field.

    Hi,
    I'm having a problem with my E51, when using PC Suite to sync with Outlook.
    When a new contact is added via the phone, and then synced with PCSuite, the Phone Field entry in Outlook is set to Other, even though on the phone it's set to Telephone:
    Is there any way to change what field name is used?
    I have the latest firmware for my E51
    PC Suite is v7.0.7.0
    MS Outlook is 2007 SP1
    Thanks.

    Just to confirm I am having the same problem (sorry not much help!). The 'Telephone' field in the E51 maps to 'Other Telephone' in Outlook 2007 and then 'disappears' when synched with my Revo. I have had to cut and paste the 'Telephone' field to the 'Telephone (home)' field on all my phone contacts and that has kept it under control.
    If when adding a new contact in the E51, the default field was 'Telephone (home)' then I would be happy. It does not seem possible to change the entry default? At the moment it means having to remember to add this field every time I need to add a new contact's home phone number. The 'mobile' field works fine.

  • 0 in Phone Number Field

    Hey all,
    I was just wondering is there a way to display a phone number with the 0 at the beginning of the number. This isn't a requirement, but I would like to. Would help the user.
    I have already made the tables and inserted the data. I have searched about the net with not many results.
    The number field is 11 digits and as a result of this problem I have had a few numbers with 11 numbers that aren't 0. I figured this would also assist error check and avoid any anomalies in the data.
    Could I run a script to correct this problem? or would it be in APEX attribute settings?
    Any help would be appreciated :)
    Thank's in advance.
    Edited by: 948251 on 02-Aug-2012 10:52

    948251 wrote:
    Hey all,
    I was just wondering is there a way to display a phone number with the 0 at the beginning of the number. This isn't a requirement, but I would like to. Would help the user.
    I have already made the tables and inserted the data. I have searched about the net with not many results.
    The number field is 11 digits and as a result of this problem I have had a few numbers with 11 numbers that aren't 0. I figured this would also assist error check and avoid any anomalies in the data.
    Could I run a script to correct this problem? or would it be in APEX attribute settings?
    Any help would be appreciated :)
    Thank's in advance.
    Edited by: 948251 on 02-Aug-2012 10:52Of course, the best way to fix it is to use the correct data type in the first place. Just because it is referred to as a "phone *number*" doesn't make it a NUMBER. Neither a telephone "number", nor a US Postal zip code, nor a US Social Security "number" have any properties of numbers. You would never do any mathematical operations on them. They are really just character strings which, by convention, are limited to the same characters that are used to represent numbers.
    And now you are dealing with one of the problems of using the wrong data type. Fortunately, this is not as severe as using the wrong data type for a DATE.

  • Missing General Phone Number(field TYPE)while PC S...

    Hi
    When I sync my phone with Lotus Notes 7 via PC Suite, the General Phone field type didnt get sync accross to my Lotus Notes 7 Address book. Can someone let me know how I can resolve this problem? At the moment whenever i enter phone number through my mobile phone, i have to change the type to office/mobile in order to successfully sync with Lotus Notes 7. I noticed Lotus Notes 7 Address book doesnt have the General Phone field type hence data will be missing during sync.
    Here is the Operating Platform
    Windows XP Professional SP 2
    PC Suite 6.84.10.3
    Lotus Notes 7.0
    Hand Phone MODEL: 6500S
    Connection: Bluetooth
    Thanks
    Cheers!
    DK

    Just to confirm I am having the same problem (sorry not much help!). The 'Telephone' field in the E51 maps to 'Other Telephone' in Outlook 2007 and then 'disappears' when synched with my Revo. I have had to cut and paste the 'Telephone' field to the 'Telephone (home)' field on all my phone contacts and that has kept it under control.
    If when adding a new contact in the E51, the default field was 'Telephone (home)' then I would be happy. It does not seem possible to change the entry default? At the moment it means having to remember to add this field every time I need to add a new contact's home phone number. The 'mobile' field works fine.

  • Need to Manipulate Phone Number

    Good day all -
    Following this blog here (http://blogs.technet.com/b/nexthop/archive/2011/02/01/howtoadphonetolineuri.aspx)  to manipulate phone number is our AD organization.
    Unfortunately when Lync populates the contact field from AD it looks at the Telephone Number and Office Number. In our organization these numbers are reversed. Meaning, the 10 digit number is xxx.xxx.xxxx is listed in the "Office"
    field of AD and the 4 Digit Extension is listed in the "Phone". With that said, we do have have different calling blocks. Meaning must of our numbers are:
    555.555.9xxx
    and 555.556.6xxx
    All internal extensions (listed in the Telephone number field) begin with 5 and would be replaced with the last xxx in the above example.
    So for the 555.250.9xxx block would be 200-499 .... for example extension 5394 would be Direct Dial Number 555.555.9394
    And for the 555.556.6xxx block would be 600-799 ...  for example extension 5657 would be  Direct Dial Number 555-555.6657
    So my question is this...with the above - how can I populate the below script correctly? Thanks for helping out.
    $enabledUsers = Get-CsAdUser -Filter {Enabled -ne $Null}
    foreach ($user in $enabledUsers)
            $phoneNumber = $user.Phone
            $phoneNumber = $phoneNumber -replace "[^0-9]"
            $extension = $phoneNumber -match "^5"
            if ($extension)
                    $phoneNumber = "TEL:+120655" + $phoneNumber
            else
                    $phoneNumber = "TEL:+142556" + $phoneNumber
            Set-CsUser -Identity $user.Identity -LineUri $phoneNumber

    Hi Sir,
    >>
    In our organization these numbers are reversed. Meaning, the 10 digit number is xxx.xxx.xxxx is listed in the "Office" field of AD and the 4 Digit Extension is listed in the "Phone". With that said, we do have have different
    calling blocks. Meaning must of our numbers are:
    555.555.9xxx
    and 555.556.6xxx
    Based on my understanding , you are going to get a number from "Phone" such as 555.555.9xxx and get a 4 digit extention number . Then you want to get the latest three number of the "Extention" number then replace "xxx"
    to get a direct dial number and save it into AD .
    Do you mean the "Office" field and "Phone" field  are  "Office" and "Telephone number" in AD user properties :
    I would suggest you to use The method substring() to cut and connect the number .
    E.g. If you want to cut the  first three number  of 123456 the command may:
    $a="123456"
    $a.substring(0,3)
    Best Regards,
    Elton JI
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • Need to change phone number

    I need some assistance changing my mobile number

    pai529,
    I'm sorry about that! Visit http://www.verizonwireless.com/support/how-to-change-phone-number-video/ to view a video on how you can change your number online via My Verizon. Once you'r ready to change your number visit https://login.verizonwireless.com/amserver/UI/Login?realm=vzw&goto=https%3A%2F%2Fmyaccount.verizonwireless.com%3A443%2Fclp%2Flogin%3Fredirect%3D%252Fvzw%252Faccountholder%252Fservices%252FchangeMDN.action%3FfromChangeMdn%3Dtrue and sign in to My Verizon. It will take you right to the option to change your number. Keep us posted if you need further assistance.
    JohnB_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the �Correct Answer� button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Need to recover phone number from a deleted text message

    Last night someone was texting me. I didn't recognize the number and when I asked how he got it he avoided the question. Dumbly I deleted the text messages and now really want to track down whoever it was that was texting me. How can I find that phone number? Sometimes if I don't save a number my iphone 4 will show me recent numbers I've texted but this one doesn't show up and I can't remember it. I haven't backed up or anything so recovering it is not an option. I don't want to have to shell out money to recover it either. I was using Wondershare Dr. Fone and it found the texts but they charge $100 to recover them. Any better options?
    Thank you so much

    Even though you deleted the text - it might still be discoverable using your Spotlight search. On the home screen swipe from left to right to access the search. Use a word that was in the message.

Maybe you are looking for

  • How do I make a genius bar appointment?

    Bought new iPhone 6 that should arrive around Dec. 5th.  I don't have the serial number yet (bought from carrier) but wanted to make a genius bar appointment to transfer info from old to new iPhone.  Can I make an appointment without having a serial

  • How to send a recurring email?

    I am using Micorosoft Outlook 2011 on my Mac Book Pro and I want to send a recurring email.  Any ideas on how to set that up?

  • I have serial key but i lost my adobe acrobat standard cd

    where can i down load adobe acrobat online so i can install it again? i have the version 10 but i dont have the cd i lost it.

  • ODI 10.1.3.5.3 and Windows 7 64 bits: ODI freeze after the logon window

    Hi, I'm trying to use ODI 10.1.3.5.3 but i can't open the application. It show the logon window and after click ok, ODI show the splash screen and nothing happens (the splash screen stay open forever and i need to kill javaw.exe process to close). I'

  • Sort and fill color SSRS

    I have one report i want to sort the year as well as month change the background color row wise. like 2011    january          red             february            red           march             green 2010            january            red