I have done some testing using 2 methods to route by the first 3 digits of the phone number field of the chat widget. so far no success. Maybe my syntax is not correct? Wen I initiate a chat and enter 9991234567 in the phone number field it is not detected in the flow and proceeds to the next case.
Method 1:

Method 2:

------------------------------
Keith Leap
Atlantic Broadband
------------------------------
Original Message:
Sent: 02-01-2022 12:08
From: Melissa Bailey
Subject: Using the phoneNumber particpant data in Chat flow to route by area code
You're right.
------------------------------
Melissa Bailey
Genesys - Employees
------------------------------
Original Message:
Sent: 02-01-2022 10:55
From: Robert Wakefield-Carl
Subject: Using the phoneNumber particpant data in Chat flow to route by area code
Melissa,
Are you sure that the .dialingCode will return the Area code of the number? From that link, it seems to only pull in the country code of the number. It seems if the form on the website is looking at only 10 digits, then a simple Left(Flow.PhoneNumber, 3) would work.
------------------------------
Robert Wakefield-Carl
Avtex Solutions, LLC
Contact Center Innovation Architect
robertwc@avtex.com
https://www.Avtex.com
https://RobertWC.Blogspot.com
Original Message:
Sent: 02-01-2022 09:05
From: Melissa Bailey
Subject: Using the phoneNumber particpant data in Chat flow to route by area code
ToPhoneNumber(Flow.PhoneNumber).dialingCode =="123"
https://help.mypurecloud.com/articles/about-the-phone-number-data-type/
------------------------------
Melissa Bailey
Genesys - Employees
Original Message:
Sent: 02-01-2022 08:57
From: Keith Leap
Subject: Using the phoneNumber particpant data in Chat flow to route by area code
I am able to route chats using Flow.PhoneNumber == "1234567890", but I am not sure how I would route all phone numbers with area code 123 in the Flow.PhoneNumber

------------------------------
Keith Leap
Atlantic Broadband