u/Yaskadju

▲ 5 r/SalesforceDeveloper+1 crossposts

Hi,

I started learning about lightning types recently, but I'm facing a challenge.

Right now I have a topic where the user types information about an account on the agentforce chat. If the agentforce detects that there are multiple accounts with the same name, it should show a custom lwc with all those accounts and some of its custom infos alongside.

So, I created action "Fetch Accounts", the LWC, the apex class and the lightning type for it. The input for the action is the account name, the apex gets the accounts and pass to the lwc using the type. The output of the action is the Type. The rendering of the LWC is working fine, but now I want this LWC to be interactive, I want the user to select which account he is choosing and submit, same as the standard Query Selector action.

However, since the lwc is being rendered as output, the button for submit just doesn't show up and I'm don't know how to "convert" this component into a interactive one. Have anyone faced a similar difficult? How do you recommend to approach this? AI is not helping me anymore on this.

Thanks!

reddit.com
u/Yaskadju — 8 days ago