I am using the following as my formula for phone numbers:
picture({CallDetailRecord.callingPartyNumber},"XXX-XXX-XXXX"
My problem is that this is picking up our 5 digit extensions (ex. 15330) as 153-30-.
How can I set up a formula to use the "XXX-XXX-XXXX" when there are ten digits to the phone number, and then to use "XXXXX" when there are five digits (for extensions).
picture({CallDetailRecord.callingPartyNumber},"XXX-XXX-XXXX"
My problem is that this is picking up our 5 digit extensions (ex. 15330) as 153-30-.
How can I set up a formula to use the "XXX-XXX-XXXX" when there are ten digits to the phone number, and then to use "XXXXX" when there are five digits (for extensions).