Inbound Email Flow or Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 02:49 PM
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]*$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 06:58 PM
Hey,
Have you tried parseInt()?
That may give you just the numbers and you can compare easily.