Author Topic: Accessing user data in VXML application  (Read 6274 times)

Offline javadork

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Accessing user data in VXML application
« 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.

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Accessing user data in VXML application
« Reply #1 on: July 13, 2010, 01:48:29 PM »
Hi,

What version of GVP do you use? Are you developing your voice application using Genesys Studio/Composer or some 3rd party tool?

R.

Offline javadork

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Accessing user data in VXML application
« Reply #2 on: July 13, 2010, 02:31:35 PM »
René, we are using GVP 7.6 and are developing VXML and Java (JSP, servlet) apps via third party tools.

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Accessing user data in VXML application
« Reply #3 on: July 13, 2010, 05:05:58 PM »
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.

Offline javadork

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Accessing user data in VXML application
« Reply #4 on: July 13, 2010, 05:22:28 PM »
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

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Accessing user data in VXML application
« Reply #5 on: July 13, 2010, 05:46:10 PM »
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.

Offline javadork

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Accessing user data in VXML application
« Reply #6 on: July 16, 2010, 03:59:18 PM »
Thanks René for your help, that's exactly what I have done.