Hello there,
I've already implemented a power automate flow to obtain user data based on their bot.DisplayName with both the Search for Users and Get User Profile actions. This flow wouldn't work upon entering anything other than DisplayName or UserID.
I'd like to extend this such that someone conversing with the chatbot could ask for a fellow employee's details from their name - their email for instance. (Think of the dropdown list that comes up when you're trying to mention someone in MS Teams). Is there a way to implement this?
Already tried that but it only works for display names i.e. LastName, FirstName. Thus, passing an employee's name wouldn't yield anything.
When asking a question you could use the "Person name" entity to extract just their name from the response, or the "Email" entity if you want to ask for their email address, but that will still be a string representation in both cases.
After getting the value, you could then pass it to a Power Automate flow and use the "Search for users (V2)" action to use that information to gather additional details about that specific user.
If you're otherwise looking for a people picker within PVA, there's currently no way to do that either via a Question or an adaptive card.
Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.
Cheers,
Matt