How to Adapt Dynamic Choice Input in Virtual Agent

NunoMeira
Tera Contributor

Hello! 

 

I have a requirement to pull information from sn_hr_core_profile table to do a validation by user.name field. 

For a start, I asked to the user type the information and with that created variable I'll perform some queries in the Lookup Records.


It has to have 3 scenarios: validate by employee number and because it's an unique value if it found a records populate the vaInputs variables pre-created as empty.

 

If did not found a record, tries to verify by email and because it is also an unique identifier it's the same process. The last case is the most trick, validate by name. And since we could have several persons with the same name, I created a dynamic choice to map all the records found.


As of now, it is finding only 1 user but I know we have plenty with the same first_name, for example. Soo the next step is to create an array to accommodate all the results and show them as a list for the person choose the correct one. And that's the part I am struggling, because I used a while to verify if it has records and then if it found, I started an array and push the values into there. But the information is not been displayed or at least not in the correct way.

 

Can someone give me support on how to create a list-view to allow users to choose 1 records found from sn_hr_core_profile table and store that information in empty variables pre-created previously in Lookup Records bot response?

 

I'll leave a representation of what I was able to create for now.
Thank you

0 REPLIES 0