Adaptation on number of "Scripter.customer Formatted Number" over data action

Hi,

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 ?

Thank you

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.

Thank you tim, how I can check only the number length on the Script agent ?

Thanks

Take a look through the documentation I linked. It documents the functions available in expressions and how to use them.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.