Hi All,
how to get user value back to PVA from Bot Framework composer? I am creating PVA bot and i am also using Bot framework Composer to create adaptive card to show to my PVA chatbot. i also have to do some operation with power flow but i am not able to get the user value to PVA chat about.
Need help on this.
Welp, I finally got it.
Flow (and set for the 'return' to be global in PVA):
Composer (Create Tab; I used json func here for the string return from PVA to go back to an array in composer):
Composer (Bot responses tab):
and
The only caveat now is the image for the user, which will work in the test bot however when you publish it to teams won't show the image. Still working on that...
I got that however I need a json or array to run foreach in the composer as I want to get multiple entries from the Search_for_users_(v2) flow..
@nk1ng do let me know, if i understand you issue correctly.
Hi, I am passing two global variable value from PVA to bot framework composer. created global variable in PVA and using same variable name in framework composer. below screenshot for your reference.
Sure, basically, I am trying to make a topic that will allow you to enter a name and you will get adaptive card carousel for the search term - basically, global address book.
I am having issues trying to load the return from "Search for user (V2)" to the composer. I was not able to pass an array back from the flow so with concat I just appended everything to a string but now it's a string, need to be an array or json or something to parse it into the adaptive cards in the composer. That made sense?
Here is what I am trying but how to you get the json into the composer?
Everything worked when I statically hardcode into the composer but I want the flow from the search_for_users_(v2) instead...
@nk1ng if you can explain more. I can try to explore.
How to you get an array to it? I am struggling with o365, search for profiles v2...
Hi, i got the answer for this.
Hi,
I am trying to get the value from Bot frame work composer to PVA.
Regards,
Anuj
Hi @anuj89822,
Can you maybe share a couple of screenshots to show what value you want to get back. Is it something from the flow? Or do you just mean the details of the user interacting with the bot?
If it is the latter you should be able to use the bot.UserId & bot.UserDisplayName. After you have enabled authentication on your bot in the settings.
stampcoin
6
Artur Stepniak
5
Super User 2025 Season 1
Michael E. Gernaey
4
Super User 2025 Season 1