A place to ask questions, connect with others, and stay in the know
Hi Anton,Thanks for the code, I didn't know about the .isSip, .e164, and .subscriberNumberI've just done some testing in an actual architect flow, using the .isSip or .isTel converts the expression "ToPhoneNumber(Call.Ani).isSip" to a type of Boolean, and is not usable in an If() statement.I tried using the below in the expression I get error "If at position x: there is no implementation that accepts a paremeter of type Boolean".If(IsNotSetOrEmpty(Call.Ani),"Anonymous",If(ToPhoneNumber(Call.Ani).isSip),Replace(Call.Ani,"sip:+61:","0"),If(ToPhoneNumber(Call.Ani).isTel),Replace(Call.Ani,"tel:+61:","0"),"Anonymous")))Whereas if I use the below which is using the Contains method it works becuase I'm not trying to use a boolean.If(IsNotSetOrEmpty(Call.Ani),"Anonymous",If(Contains(Call.ani,"sip:"),Replace(Call.Ani,"sip:+61:","0"),If(Contains(Call.ani,"tel:"),Replace(Call.Ani,"tel:+61:","0"),"Anonymous")))So if you wanted to use ToPhoneNumber(Call.Ani).isSip then you would have to first use a Decision action which then goes to an Update Data action in each path with the Replace stuff in it, which is then cumbersome, but the ToPhoneNumber(Call.Ani).isSip will be useful in other areas.If you want to contain the conversion/cleanup "replace" code in a single Update Data > String Variable action then the Contains() function in the If() is the way to go.Thanks,Nathan
Every year, Genesys® delivers more than 70 billion remarkable customer experiences for organizations in over 100 countries. Through the power of the cloud and AI, our technology connects every customer moment across marketing, sales and service on any channel, while also improving employee experiences. Genesys pioneered Experience as a ServiceSM so organizations of any size can provide true personalization at scale, interact with empathy, and foster customer trust and loyalty. This is enabled by Genesys Cloud™, an all-in-one solution and the world's leading public cloud contact center platform, designed for rapid innovation, scalability and flexibility. Visit www.genesys.com.