Hi,
I have an adaptive card that has a Submit button. I want to make sure that the submit button is clicked, before moving onto the next stage by (and I'm open to ideas), setting a flag in the data section.
I've tried to get the value in a Response using:
${turn.activity.value.email_submitButtonClicked}
${turn.activity.value.email_submitButtonClicked.data}
${turn.activity.value.data}
None seem to work... can anyone help?
Yes, 100% agreed with @HenryJammes - "Ask with adaptive card" is a much easier way to grab values from an adaptive card in the new Unified Canvas. In Azure Bot Composer Framework you had to use turn.activity.value.{YourProperty} but this is much easier. It also looks like turn.activity.value isn't available in Unified Canvas, so this looks like the only option 😼 and its quite convenient that it automatically recognizes the names of the values in your card.
Once you have the values from your card inside variables you can do anything you'd like with them, including outputting in a message, sending to an Action, etc.
@jdee111 Based on the values you tried using, I'm assuming you're using Azure Bot Composer Framework.
In that case, this is what you needed (assuming this may be a moot point since your post was from months ago):
turn.activity.value.x
You just specify the name of the value inside your data, essentially, so in your example, that would just be "x"
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
Hi @fernandosilva,
Once you capture the user email in an "Ask with adaptive card" node, it's saved as a variable in PVA, and you can send the content of that variable as an input to a Power Automate cloud flow, in a subsequent action step.
Call a flow as an action - Power Virtual Agents | Microsoft Learn
Henry
Hi @HenryJammes ,
I watched the demo and I just would like to know how the new adaptive cards on PVA will work to send the data to an email address like is done nowadays with Power Automate.
Cheers,
Fernando Silva
There's a new feature in PVA to easily capture submits from adaptive cards as variables.
Have you looked at it?
See: How to use Adpative Cards in PVA to ask questions. - YouTube
I am facing the same issue, I am want to fetch values of items url from first object and text from second and third object. Can anyone help it out.
{
type: "Column",
items: [
{
type: "Image",
size: "Medium",
url: (Topic.Image1)
},
{
type: "TextBlock",
size: "Small",
text: (Topic.CategorySelected) & ": " & (Topic.Output),
weight: "Bolder"
},
{
type: "TextBlock",
size: "Small",
text: "$450",
weight: "Bold"
},
{
type: "ActionSet",
actions: [
{
type: "Action.Submit",
title: "Add To Cart",
style: "positive"
},
{
type: "Action.Submit",
title: "Favorite",
style: "positive"
}
]
}
]
}
Romain The Low-Code...
76
Pablo Roldan
61
stampcoin
10