Accessing user data in VXML application

We’re using Proactive Contact and my VoiceXML app needs to access user data.

I can retrieve all user data using

<var name="somevar" expr="session.genesys.User_Data" />

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.

1 Like

Concerning object element extensions, that is currently how we get that data. Ex:


<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>

Prior to Proactive contact, this 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 block returns no data. I have only been able to retrieve this data via aforementioned session.genesys.User_Data

2 Likes

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.

1 Like