Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Question:

In my source file, the column for phone number has dashes and parentheses. Sincethe phone number won't integrate correctly to Dynamics with them, how can I remove them?


Answer:
Use a VBScript to remove these unwanted characters. The complete script below uses the Replace function to replace any dash, parentheses or blank space with a null value, effectively removing it.


Dim PhoneStr

PhoneStr = SourceFields("Customers.Phone")

PhoneStr = Replace(PhoneStr,"-","")

PhoneStr = Replace(PhoneStr,"(","")

PhoneStr = Replace(PhoneStr,")","")

PhoneStr = Replace(PhoneStr," ","")

CurrentField = PhoneStr




This article was TechKnowledge Document ID:9714

TechKnowledge Content

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×