Inbound Email Flow or Action

JuliaHowells
Tera Expert

I need to have an inbound flow or inbound action that processes for the following condition:

If 'From' phone number and the reply-to phone number match, process the action. 

 

Example of how these are processed inbound: 

From: WIRELESS CALLER <+18008881111>

Reply-To: +1 800-888-1111<example@examplecom>

 

I am stuck on how to write the condition. I did start the Regex portion to make the reply-to phone number the same format as the From but I essentially need this to validate that the phone numbers contain the same numbers and disregard the other data. 

 

// regex expression for normalization
^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$

 

1 REPLY 1

Neel Patel
Tera Guru

Hey, 

Have you tried parseInt()?

That may give you just the numbers and you can compare easily.