Help with Virtual agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2023 06:13 PM - edited 09-02-2023 08:35 PM
Hi Everyone,
I am working on Virtual Agent. My requirement: I have to Glide Record through custom table and return all the records which match the query condition.
Query Condition: 'Name', 'CONATINS', vaInputs.user_entered_text.
To Achieve this, I am using Script Action Utility and Card Bot Response (card type = small image with text). In script Action Utility I am doing GlideRecordSecure on custom table and getting sys_id of all the records and store in an array.
Then in card bot response, I take sys_id from above script action and do GlideRecord on custom table and return fields like Name and URL (URL of image).
There is only one problem which I am facing. That is, if I am getting three sys_id from script action but, I am getting card bot response for only one sys_id. I want to get card bot response for all the sys_id. If 5 sys_id then 5 card bot response and if 10 sys_id then 10 card bot response. Please help.
I have attached screenshots of my scripts in below post.
cc: @Ankur Bawiskar @Pavankumar_1 @kamlesh kjmar
Thanks, in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2023 06:18 PM
Hi Everyone,
Please go through my scripting.
1. Script Action
2. Card Bot Response.
Card type: Small image with text.
a. Title
b. Image URL link
Thanks, in advance.