Genesys CTI User Forum
Genesys CTI User Forum => Genesys-related Development => Topic started by: javadork on July 12, 2010, 07:14:09 PM
-
We're using Proactive Contact and my VoiceXML app needs to access user data.
I can retrieve [b]all[/b] user data using
[code]<var name="somevar" expr="session.genesys.User_Data" />[/code]
However, the solution guide indicates that individual key-value pairs are accessible within my app using $variables, which would be preferable to parsing the contents of User_Data.
Anyone have a code snippet example, or ideas how this would work in my VXML code? I don't seem to be having much luck, and the Genesys documentation is a bit vague on this point.
Thanks.
-
Hi,
What version of GVP do you use? Are you developing your voice application using Genesys Studio/Composer or some 3rd party tool?
R.
-
René, we are using GVP 7.6 and are developing VXML and Java (JSP, servlet) apps via third party tools.
-
In that case I would recommend you to read Genesys Voice Platform 7.6 VoiceXML 2.1 Reference Manual where you can find description of the object element extension incl. format of the response.
R.
-
Concerning object element extensions, that is currently how we get that data. Ex:
[code]
<object name="userdata" classid="CRData:get">
<param name="GSW_PHONE" expr="''" />
<param name="GSW_CALL_RESULT" expr="''" />
<param name="GSW_CAMPAIGN_NAME" expr="''" />
<param name="CUSTOMER_ID" expr="''" />
<param name="PAST_DUE_AMT" expr="''" />
</object>
[/code]
Prior to Proactive contact, this <object> block would function correctly, because I believe that data was contained in attached data.
However, it is no longer coming across with Proactive Contact, therefore the <object> block returns no data. I have only been able to retrieve this data via aforementioned session.genesys.User_Data
-
Hi,
Sorry, I forgot you're talking about Proactive integration...
As you don't use Studio you have to parse returned string by yourself. Based on the documentation, the values are separated by the & character.
R.
-
Thanks René for your help, that's exactly what I have done.