We have inetgrated a third party application with Purecloud to store the phone numbers to callback through data action on the Script Agent ( with Scripter.Customer Formatted Number)
The Script Agent send the "Scripter.Customer Formatted Number" through the data action to the Third party application
My question: how we can apply a filter to the "Scripter.Customer Formatted Number" on the Script Agent to send only the correct phone numbers format with E164 format ?
It's possible to do some limited input validation using dynamic script variables. There's nothing to directly validate a phone number, but you could at least check for length. If you need proper phone number validation, I'd suggest building a middleware service to sit between the script and the existing web service or a separate web service that will only validate the number and return the result so you can determine if you should call the existing web service or not.