Had extended screen time myself but when I last played around with this I used an update data item prior to this and in that one I modified the number format to how I needed it to be. So for example one of our customers has numbers stored in their CRM in the local number format, not E164, so I have to take the subscribernumber portion of the call.ani variable and put it into a phone number type variable (named Flow.aniSubscriber in my case):
"0"+ToPhoneNumber(Call.Ani).subscriberNumber
This essentially takes the +6496496499 from the call.ani variable and returns 096496499. However it's now stored as a phone number.
So in my data table lookup I convert that back to a string:
ToString(Flow.aniSubscriber)
I'm sure there's a way to compress all that into a single expression/syntax but it works for me.
I guess it also depends on what number format you have the ANI stored in your data table as too. In my case the key field is stored as that 0nnnnnnnn format as that's easier for the people that update the data table to remember and how they're stored in their CRM.
https://help.mypurecloud.com/articles/about-the-phone-number-data-type/------------------------------
Vaun McCarthy
NTT New Zealand Limited
------------------------------