What I have done, which might help in your scenario, is to create a Flow variable to pass to the script instead of using the built-in Call.ANI and create a custom variable in the script to receive it.
For example, I created
Flow.scriptANI and used an Update Data action in the Architect Task to assign the format desired using
Replace():
Replace(ToString(Call.Ani),"tel:","0")
------------------------------
George Ganahl GCP (PureCloud) ICCE CCXP
Principal Technology Consultant
Genesys
------------------------------
Original Message:
Sent: 10-13-2019 07:47
From: Mohammad Khaleel
Subject: Pop-up screen number format change
HI,
I have implemented the integration of Client in-house CRM system to use as a pop-up screen to the agents to show customer information. I can bring the pop-up screen up with CRM page but the problem is Number format. Whenever a customer calls to the call centre pop-up screen link shows "tel:5XXXXXXXX" as number format which will not be recognised in the Client backend CRM system.
I need to change from "tel:5XXXXXXXXXX" to "05XXXXXXXX".
I was using UPDATE DATA Variable to change the number format while landing the call in the queue but it seems it doesn't work. I have attached a video showing the same what I explained.
#Integrations
------------------------------
Mohammad
------------------------------