" /> Can you use ascii type codes chr(13) for example as variable values in URS? - Genesys CTI User Forum

Author Topic: Can you use ascii type codes chr(13) for example as variable values in URS?  (Read 2272 times)

Offline nonny

  • Full Member
  • ***
  • Posts: 218
  • Karma: 2
Advertisement
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.

Offline nonny

  • Full Member
  • ***
  • Posts: 218
  • Karma: 2
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.