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.comhttps://www.Avtex.comhttps://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