Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: nonny on June 09, 2015, 09:21:27 AM

Title: Can you use ascii type codes chr(13) for example as variable values in URS?
Post by: nonny on June 09, 2015, 09:21:27 AM
Without getting into the why's, is it possible to have a variable declared in a routing strategy contain the line feed type codes without them being seen just as text?  By that I want a variable's value to be something like str_Names=Cat['John',chr(13),'Dave'].  This is because that variable populates a UData KVP that is then read by a third party application.
Title: Re: Can you use ascii type codes chr(13) for example as variable values in URS?
Post by: nonny on June 09, 2015, 09:59:04 AM
Well as soon as I posted this I found a Genesys knowledgebase article about an undocumented function:


Use below listed function in IRD to achieve the requirement:


Variable name = Cat['a',Char[10],'b',Char[10],'c']
•Char[] function has only one input parameter, which is the ascii code of the symbol in decimal format.
•For example, Char[10] returns new line (\n) symbol, Char[39] returns apostrophe, etc.






Environment








Supplemental Information


•While this function is not officially documented, it's fully supported.