Mostafa_OUDDERHEM | 2018-10-30 11:25:25 UTC | #1
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
tim.smith | 2018-10-30 13:26:12 UTC | #2
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.
Mostafa_OUDDERHEM | 2018-10-30 13:40:01 UTC | #3
Thank you tim, how I can check only the number length on the Script agent ?
Thanks
tim.smith | 2018-10-30 13:41:22 UTC | #4
Take a look through the documentation I linked. It documents the functions available in expressions and how to use them.
system | 2018-11-30 13:55:21 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 3851