I am trying to save off both an entities value and name into two separate variables (if possible) but I am unable to do so easily. I currently have an entity similar to this...
<entities>
<entity name="Employee">
<value name="chat test" value="84"/>
<value name="Bill Bu" value="85"/>
<value name="Tim Roberts" value="86"/>
</entity>
<entities>
I am attempting to save off both the values and the names to a two different variables to do that I'm doing this
<input>
<grammar>
<item>Who is (Employee)={employeename}</item>
</grammar>
<action operator="SET_TO" varName="employeename">{employeename.value:name}</action>
<action operator="SET_TO" varName="employeeid">{employeename.value:main}</action>
<goto ref="employeeData_whois"/>
</input>
and here is where I set up the variables....
<variables>
<var_folder name="Home">
<var description="The current employee being inquired on" name="employeename" type="TEXT"/>
<var description="The current ID of employee being inquired on" name="employeeid" type="NUMBER"/>
</var_folder>
</variables>
For whatever reason when I try to access the employeename everything works great but I can't seem to access the employeeid ( I want to reference an external system id). Any advice?
Thanks!